commander-b

1.0.0 • Public • Published

commander-b

Fine, we'll go to plan B... You got a plan B?

Marcus Fenix

A helper library for Node.js command-line interfaces, inspired by commander.js.

Installation

npm install commander-b

Examples

examples/simple.js

var command = require('commander-b');

command()
.version('0.1.0')
.action(function() { console.log('Yukiho is God.'); })
.execute();

Run

$ node examples/simple.js
Yukiho is God.

$ node examples/simple.js -h

  Usage: simple

  Options:

    -h, --help    output usage information
    -V, --version output the version number

$ node examples/simple.js -V
0.1.0

Badges

Build Status Coverage Status

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i commander-b

Weekly Downloads

13

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bouzuya