Skip to content

code-check/cli-template-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

Releases

No releases published

Packages

No packages published