#[macro_use] extern crate neon; use neon::prelude::*; fn hello(mut cx: FunctionContext) -> JsResult { Ok(cx.string("hello node")) } register_module!(mut cx, { cx.export_function("hello", hello) });