use node_bindgen::derive::node_bindgen; struct MyObject { val: f64, } #[node_bindgen] impl MyObject { #[node_bindgen(name=20)] fn new(val: f64) -> Self { Self { val } } } fn main() { }