Implement CLI application by editing main.js.
You may add new files to keep your code clean, if it is allowed in your challenge.
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.
Use the standard console.log method to output results to stdout.
console.log(result);If you want to use external libraries, do the following:
- Add dependency information in package.json