@otox/cli-helper
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @otox/cli-helper

Weekly Downloads

0

Version

0.0.7

License

none

Unpacked Size

3.38 kB

Total Files

4

Last publish

Collaborators

  • kangdongmandoo