0.4.1 • Published 9 years ago

consolar v0.4.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

Consolar

Simple console utility framework

Features

  • Parses console input using minimist
  • Converts long options to camelCase
  • Displays the console version (-v, --version)
  • Displays console or command help (-h, --help)
  • Handles input requirement validation
  • Runs chosen command when init() is called

Install

$ npm install --save consolar

Usage

Consolar is meant to be used as a supporting module for console utilities that implement a specific design pattern where all commands are written and usable separately and then brough together to behave as a complete console application in the more traditional sense.

var cli = require('consolar');

cli.init({
    name: 'Cli',
    version: '1.0.0',
    basePath: __dirname,
    consoleInput: process.argv.splice(2),
    commandPrefix: 'cli'
});

License

MIT © Selvin Ortiz

0.4.1

9 years ago

0.4.0

9 years ago

0.2.0

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago