@tiaanduplessis/ncli
Add a nifty CLI to your package
Table of Contents
Install
This project uses node and npm.
$ npm install @tiaanduplessis/ncli
$ # OR
$ yarn add @tiaanduplessis/ncli
Usage
const ncli = require('@tiaanduplessis/ncli') // eslint-disable-line
ncli({
onStdin: data => console.log(`${data}`),
num: val => console.log(`The num is ${val}`),
help: `
--name Print name
`,
version: '1.0.0',
})
Contribute
- Fork it and create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
License
MIT