a node.js shell script template
-
make sure the file is executable
chmod +x template.js
-
make sure node location is proper
#!/usr/bin/node
-
to be more official, make a package.json file
inside the project directory
npm init
./script_name --an_arg_name a_value