cli-router
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -5,6 +5,4 @@ #!/usr/bin/env node | ||
var usage_path = path.join(__dirname, 'usage.txt'); | ||
var Cli = require('../lib/src').Cli; | ||
var cli = new Cli({ path: usage_path}); | ||
var cli = new Cli({ path: path.join(__dirname, 'usage.txt') }); | ||
@@ -11,0 +9,0 @@ var result = cli.run({ |
{ | ||
"name": "cli-router", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "cli-router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# cli-router | ||
#### Before start development | ||
[![NPM](https://nodei.co/npm/cli-router.png)](https://nodei.co/npm/cli-router/) | ||
A simple Cli router to Controllers | ||
## Install with [npm](https://www.npmjs.com/package/cli-router) | ||
```shell | ||
$ npm install --save cli-router | ||
``` | ||
## Usage | ||
Example of binary usage: | ||
```javascript | ||
#!/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: | ||
@@ -6,0 +38,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75865
89
554