@reinjs/rein-command

The commander library of rein-cli

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jun 15, 2018May 18, 2018Minified + gzip package size for @reinjs/rein-command in KB

Readme

@reinjs/rein-command

The commander library of rein-cli

Install

npm i @reinjs/rein-command

Usage

const program = require('@reinjs/rein-command');
const app = new program(__dirname);
app.version(pkg.version);
app.plugin({ ... });
app.use('npm owner', '../lib/middleware/auth2');
app.param('name', '../lib/middleware/param');
app.command('npm owner add :name([a-zA-z0-9]+)', '../lib/middleware/auth', '../lib/owner.add');
app.listen();

Then we use command npm owner add evio

License

It is MIT licensed.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.