There are two example crates, a binary and a library one:

Each directory has a nodejs.js file that can be executed with nodejs and runs the compiled code.