@reinjs/rein-command

1.0.12 • Public • Published

@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.

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @reinjs/rein-command

    Weekly Downloads

    1

    Version

    1.0.12

    License

    MIT

    Unpacked Size

    6.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • reinjs