A simple example showing how to create a rust string and pass it back to the node application.
$ cargo build --release && cp ./target/release/librust_napi_create_string.so index.node
$ node ./index.js
Here are a few relevant links that you might find interesting.