Comparing version 2.1.0 to 2.1.1
@@ -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 |
{ | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8755
156