Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 721 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 721 Bytes

Command line application template for Node.js

Implement CLI application by editing main.js.
You may add new files to keep your code clean, if it is allowed in your challenge.

How to get input parameters

You can get arguments as args in main.js where the main method is defined.

function main(argv) {
  // code to run
}

This argv is simply came from process.argv passed by index.js.

How to output result

Use the standard console.log method to output results to stdout.

console.log(result);

Install External Libraries

If you want to use external libraries, do the following: