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.0.0 to 2.0.1

4

index.js

@@ -49,6 +49,6 @@ 'use strict';

result.input = input
result.flags = args
return camelcase(result, {
result.flags = camelcase(args, {
excludeKeys: ['--']
})
return result
}

@@ -55,0 +55,0 @@

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

@@ -55,4 +55,4 @@ "license": "MIT",

"kanpai": {
"testScript": "test2"
"test": "test2"
}
}

@@ -51,3 +51,5 @@ # 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)

- **description**: `string`, command description, will be used to output cli usage
- **fn**: `function`, command function, will be triggered when this command matches user's input
- **fn**: `function`, command function, will be triggered when this command matches user's input, the function takes two arguments:
- *input*: non-flag arguments
- *flags*: flags converted to camelCase

@@ -54,0 +56,0 @@ ## .parse(argv)

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