Socket
Socket
Sign inDemoInstall

cac

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cac - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

14

index.js

@@ -83,5 +83,2 @@ 'use strict';

this.pkg = readPkg.sync().pkg
this.unknownFn = function (arg) {
console.log(("error: unknown option `" + arg + "`"))
}

@@ -129,3 +126,3 @@ this

return this
return this
};

@@ -199,7 +196,2 @@

CAC.prototype.unknown = function unknown (fn) {
this.unknownFn = fn
return this
};
CAC.prototype.parse = function parse (argv) {

@@ -229,4 +221,4 @@ var this$1 = this;

command = this.commands['*']
}
this.runCommand(command)
}
this.runCommand(command)

@@ -233,0 +225,0 @@ return this

{
"name": "cac",
"version": "2.1.0",
"version": "2.1.1",
"description": "Command & Conquer, the command-line queen.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -63,6 +63,2 @@ # cac [![NPM version](https://img.shields.io/npm/v/cac.svg)](https://npmjs.com/package/cac) [![NPM downloads](https://img.shields.io/npm/dm/cac.svg)](https://npmjs.com/package/cac) [![Build Status](https://img.shields.io/circleci/project/egoist/cac/master.svg)](https://circleci.com/gh/egoist/cac)

## .unknown(fn)
- **fn**: `function`, invoked when an unknow option was provided by user.
## .string(string | array)

@@ -69,0 +65,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