Skip to content

Instantly share code, notes, and snippets.

@thejhh
Created October 6, 2011 23:38
Show Gist options
  • Select an option

  • Save thejhh/1269017 to your computer and use it in GitHub Desktop.

Select an option

Save thejhh/1269017 to your computer and use it in GitHub Desktop.
Example of node.js shell script

This is how to run it:

$ node hello.js 
Hello world
#!/usr/bin/env node
console.log("Hello world");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment