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

cac

Package Overview
Dependencies
Maintainers
3
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 6.0.0 to 6.0.1

dist/Command.js

12

package.json
{
"name": "cac",
"version": "6.0.0",
"version": "6.0.1",
"description": "Simple yet powerful framework for building command-line apps.",

@@ -9,5 +9,7 @@ "repository": {

},
"main": "dist/cac.cjs.js",
"main": "dist/index.js",
"types": "types/index.d.ts",
"files": [
"dist",
"types",
"!**/__test__/**"

@@ -17,3 +19,3 @@ ],

"test": "jest",
"build": "bili",
"build": "tsc",
"toc": "markdown-toc -i README.md",

@@ -27,3 +29,2 @@ "prepublishOnly": "npm run build"

"@types/jest": "^23.3.9",
"bili": "^3.4.2",
"cz-conventional-changelog": "^2.1.0",

@@ -37,3 +38,2 @@ "eslint-config-rem": "^3.0.0",

"prettier": "^1.15.2",
"rollup-plugin-typescript2": "^0.18.0",
"semantic-release": "^15.12.1",

@@ -61,3 +61,3 @@ "ts-jest": "^23.10.5",

"*.md": [
"yarn toc",
"markdown-toc -i",
"prettier --write",

@@ -64,0 +64,0 @@ "git add"

@@ -15,27 +15,27 @@ <img width="945" alt="2017-07-26 9 27 05" src="https://user-images.githubusercontent.com/8784712/28623641-373450f4-7249-11e7-854d-1b076dab274d.png">

- [Usage](#usage)
* [Simple Parsing](#simple-parsing)
* [Display Help Message and Version](#display-help-message-and-version)
* [Command-specific Options](#command-specific-options)
* [Brackets](#brackets)
* [Variadic Arguments](#variadic-arguments)
* [Dot-nested Options](#dot-nested-options)
* [Default Command](#default-command)
* [With TypeScript](#with-typescript)
- [Simple Parsing](#simple-parsing)
- [Display Help Message and Version](#display-help-message-and-version)
- [Command-specific Options](#command-specific-options)
- [Brackets](#brackets)
- [Variadic Arguments](#variadic-arguments)
- [Dot-nested Options](#dot-nested-options)
- [Default Command](#default-command)
- [With TypeScript](#with-typescript)
- [References](#references)
* [CLI Instance](#cli-instance)
+ [cli.command(name, description)](#clicommandname-description)
+ [cli.option(name, description, config?)](#clioptionname-description-config)
+ [cli.parse(argv?)](#cliparseargv)
+ [cli.version(version)](#cliversionversion)
+ [cli.help(callback?)](#clihelpcallback)
+ [cli.outputHelp()](#clioutputhelp)
* [Command Instance](#command-instance)
+ [command.option()](#commandoption)
+ [command.action(callback)](#commandactioncallback)
+ [command.alias(name)](#commandaliasname)
+ [command.allowUnknownOptions()](#commandallowunknownoptions)
+ [command.example(example)](#commandexampleexample)
* [Events](#events)
- [CLI Instance](#cli-instance)
- [cli.command(name, description)](#clicommandname-description)
- [cli.option(name, description, config?)](#clioptionname-description-config)
- [cli.parse(argv?)](#cliparseargv)
- [cli.version(version)](#cliversionversion)
- [cli.help(callback?)](#clihelpcallback)
- [cli.outputHelp()](#clioutputhelp)
- [Command Instance](#command-instance)
- [command.option()](#commandoption)
- [command.action(callback)](#commandactioncallback)
- [command.alias(name)](#commandaliasname)
- [command.allowUnknownOptions()](#commandallowunknownoptions)
- [command.example(example)](#commandexampleexample)
- [Events](#events)
- [FAQ](#faq)
* [How is the name written and pronounced?](#how-is-the-name-written-and-pronounced)
- [How is the name written and pronounced?](#how-is-the-name-written-and-pronounced)
- [Contributing](#contributing)

@@ -209,14 +209,10 @@ - [Author](#author)

To make our own type definitions work with commonjs modules, use the default export:
Then everything just works out of the box:
```js
const cac = require('cac').default
const cli = cac()
//...
const cac = require('cac')
// OR ES modules
import cac from 'cac'
```
For ES modules, it works out of the box.
## References

@@ -223,0 +219,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