@otox/cli-helper
v0.0.7
Published
process.argv parser
Downloads
6
Readme
@otox/cli-helper
process.argv parser
usage
#!/usr/bin/env node
const helper = require("@otox/cli-helper");
helper.parse(process.argv);
// => { command: 'foo', params: ['bar'], options: { help: true, h: true } }
helper.parseWithOptions(process.argv, { help: "h" });
// => { command: 'foo', params: ['bar'], options: { help: true } }
$ node index.js foo bar --help -h