A simple and lightweight module to parse command line arguments
Installation • Usage • License • Contact
Install the package via npm:
npm install argv.js
import Argv from 'argv.js';
If you run the following script:
node script.js --verbose -f config.json --debug
The code:
const args = Argv.parse();
console.log(args);
Will output:
{
verbose: true,
f: 'config.json',
debug: true
}
Developed by Quentin Lamamy.
- Email: [email protected]
- GitHub: github.com/quentin-lamamy
- Cafeine Github: github.com/Cafeine-Software