- Parse text with chords
// node dist/index.js create --nostart --decent --lauch=dev speed 3
const argsFinder = require('args-finder');
console.log(argsFinder.operation);
// create
console.log(argsFinder.commands);
// ['create']
console.log(argsFinder.options);
// {
// start: false,
// decent: true,
// launch: 'dev',
// speed: 3
// }
npm install --save args-finder
- npm run build :
rm -rf dist && tsc
- npm run test :
mocha ./dist/test/*.js
Package | Version | Dev |
---|---|---|
@types/node | ^8.10.12 | ✖ |
minimist | ^1.2.0 | ✖ |
@types/chai | ^4.1.3 | ✔ |
@types/minimist | ^1.2.0 | ✔ |
@types/mocha | ^5.2.0 | ✔ |
chai | ^4.1.2 | ✔ |
mocha | ^5.1.1 | ✔ |
Contributions welcome; Please submit all pull requests against the master branch. If your pull request contains TypeScript patches or features, you should include relevant unit tests. Please check the Contributing Guidelines for more details. Thanks!
Wendly Saintil wendlysaintil@gmail.com https://twitter.com/wendlysaintil