You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cli-router

Package Overview
Dependencies
Maintainers
5
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-router

cli-router

0.2.0
Source
npmnpm
Version published
Weekly downloads
40
233.33%
Maintainers
5
Weekly downloads
 
Created
Source

cli-router

NPM

A simple Cli router to Controllers

Install with npm

$ npm install --save cli-router

Usage

Example of binary usage:

#!/usr/bin/env node
var path = require('path');

var Cli = require('../lib/src').Cli;
var cli = new Cli({ path: path.join(__dirname, 'usage.txt') });

var result = cli.run({
  argv: process.argv.slice(2),
  version: '2.0'
}, {
  // ui: {},
  cwd: process.cwd()
});

console.log(result);

CONTRIBUTING

  • Install/Update dependencies:

    $ npm install --save-dev azk-dev
    $ gulp editor:config
    $ gulp babel:runtime:install
    $ npm install
    
  • Commit

    $ git add .
    $ git commit -m 'Updated azk-dev.'
    

azk-dev

Show all gulp tasks:

$ gulp help

Tests

# default (lint + test, no watch)
$ gulp lint test

# test + lint + watch
$ gulp watch:lint:test

# test + watch (no-lint)
$ gulp watch:test

Deploy npm package

You can deploy package with:

$ npm run deploy [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease]

This should run the following steps:

  • Check if not tracked commits in git
  • Run tests with npm test
  • Upgrade version in package.json, commit and add tag
  • Publish package in npmjs.com

Keywords

azk

FAQs

Package last updated on 29 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts