Socket
Socket
Sign inDemoInstall

coa

Package Overview
Dependencies
1
Maintainers
3
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

5

lib/cmd.js

@@ -0,1 +1,2 @@

/* eslint-disable class-methods-use-this */
'use strict';

@@ -194,5 +195,5 @@

_exit(msg, code) {
return process.once('exit', function() {
return process.once('exit', function(exitCode) {
msg && console[code === 0 ? 'log' : 'error'](msg);
process.exit(code || 0);
process.exit(code || exitCode || 0);
});

@@ -199,0 +200,0 @@ }

1

lib/coaobject.js

@@ -0,1 +1,2 @@

/* eslint-disable class-methods-use-this */
'use strict';

@@ -2,0 +3,0 @@

@@ -65,3 +65,3 @@ 'use strict';

if(err) return defer.reject(err);
d = d.replace(/{{cmd}}/g, path.basename(name)).replace(/^\#\!.*?\n/, '');
d = d.replace(/{{cmd}}/g, path.basename(name)).replace(/^#!.*?\n/, '');

@@ -68,0 +68,0 @@ process.stdout.on('error', onError);

{
"name": "coa",
"description": "Command-Option-Argument: Yet another parser for command line options.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "http://github.com/veged/coa",

@@ -32,4 +32,4 @@ "author": "Sergey Berezhnoy <veged@ya.ru> (http://github.com/veged)",

"coveralls": "^2.11.16",
"eslint": "^3.15.0",
"eslint-config-pedant": "^0.8.0",
"eslint": "^4.15.0",
"eslint-config-pedant": "^1.0.0",
"mocha": "~1.21.4",

@@ -36,0 +36,0 @@ "nyc": "^10.1.2"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc