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

getopts

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getopts - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

12

getopts.d.ts

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

/** Interface for getopts parsed options object. */
interface ParsedOptions {

@@ -7,8 +6,2 @@ _: string[]

/** Interface for getops options argument.
* @param alias Option aliases.
* @param boolean Options that should be parsed as booleans.
* @param default Default values for missing options.
* @param unknown Run for every unknown option.
*/
interface Options {

@@ -21,10 +14,9 @@ alias?: { [key: string]: string | string[] }

/** Parse the arguments passed to your program from the command line.
/**
* @param argv Arguments to parse.
* @param options Options.
* @returns An object with parsed pptions.
* @returns An object with parsed options.
*/
declare function getopts(argv: string[], options?: Options): ParsedOptions
export = getopts

2

package.json
{
"name": "getopts",
"description": "Node.js CLI options parser.",
"version": "2.1.0",
"version": "2.1.1",
"main": "index.js",

@@ -6,0 +6,0 @@ "types": "getopts.d.ts",

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