/node-shell

a node.js shell script template

Primary LanguageJavaScriptMIT LicenseMIT

node-shell

a node.js shell script template

How to

  • 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
    

Run script

  ./script_name --an_arg_name a_value