Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-router

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-router - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

4

example/index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc