Socket
Socket
Sign inDemoInstall

cli

Package Overview
Dependencies
Maintainers
0
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

1

cli.js

@@ -569,2 +569,3 @@ /**

usage = u;
return cli;
};

@@ -571,0 +572,0 @@

6

examples/static.js

@@ -19,6 +19,4 @@ #!/usr/bin/env node

if (options.serve) {
this.debug('Serving files from ' + options.serve);
middleware.push(require('creationix/static')('/', options.serve, 'index.html'));
}
this.debug('Serving files from ' + options.serve);
middleware.push(require('creationix/static')('/', options.serve, 'index.html'));

@@ -25,0 +23,0 @@ server = this.createServer(middleware).listen(options.port);

{ "name" : "cli",
"description" : "A command line opts/args parser for node",
"version" : "0.1.5",
"version" : "0.1.6",
"homepage" : "http://github.com/chriso/cli",

@@ -5,0 +5,0 @@ "keywords" : ["cli","command line","opts","parseopt","opt","args","console","argsparse","optparse","daemon"],

@@ -14,3 +14,2 @@ **cli is a tool for rapidly building NodeJS command line apps**

cli.parse({
//long_opt: [short_opt, description, value_type, default_value]
log: ['l', 'Enable logging'],

@@ -29,6 +28,4 @@ port: ['p', 'Listen on this port', 'number', 8080],

if (options.serve) {
this.debug('Serving files from ' + options.serve);
middleware.push(require('creationix/static')('/', options.serve, 'index.html'));
}
this.debug('Serving files from ' + options.serve);
middleware.push(require('creationix/static')('/', options.serve, 'index.html'));

@@ -35,0 +32,0 @@ server = this.createServer(middleware).listen(options.port);

Sorry, the diff of this file is not supported yet

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