Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 608 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 608 Bytes

handler NPM Version Travis

Execute functions within the context in a cli.js app

Install

npm install @cli/handler --save

Usage

var alias = require('@cli/alias')
var handler = requrie('@cli/handler')
var command = require('@cli/command')

var testCommand = command(
  alias('test'),
  handler(function () {/* do something here */})
)