@types/command-line-commands
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -14,5 +14,7 @@ // Type definitions for command-line-commands 2.0.0 | ||
*/ | ||
declare function commandLineCommands(commands: (string | null)[], argv?: string[]): { command: string | null, argv: string[] }; | ||
declare function commandLineCommands( | ||
commands: (string | null)[], | ||
argv?: string[], | ||
): { command: string | null; argv: string[] }; | ||
export = commandLineCommands; | ||
{ | ||
"name": "@types/command-line-commands", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "TypeScript definitions for command-line-commands", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/command-line-commands", | ||
"license": "MIT", | ||
@@ -9,14 +10,17 @@ "contributors": [ | ||
"name": "CzBuCHi", | ||
"url": "https://github.com/CzBuCHi" | ||
"url": "https://github.com/CzBuCHi", | ||
"githubUsername": "CzBuCHi" | ||
} | ||
], | ||
"main": "", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/command-line-commands" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6a4977c902b804b3af1c3112a1606cf0c6e95035b0b34d5178f34096334da911", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "b9979f6270fb7ee59d4ee89e248dfa207da0aeb053d5e17776c48b57ee8bf93b", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -8,6 +8,29 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/command-line-commands | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/command-line-commands. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/command-line-commands/index.d.ts) | ||
````ts | ||
// Type definitions for command-line-commands 2.0.0 | ||
// Project: https://github.com/75lb/command-line-commands | ||
// Definitions by: CzBuCHi <https://github.com/CzBuCHi> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 21:49:18 GMT | ||
/** | ||
* Parses the `argv` value supplied (or `process.argv` by default), extracting and returning the `command` and remainder of `argv`. The command will be the first value in the `argv` array unless it is an option (e.g. `--help`). | ||
* | ||
* @param {string|string[]} - One or more command strings, one of which the user must supply. Include `null` to represent "no command" (effectively making a command optional). | ||
* @param [argv] {string[]} - An argv array, defaults to the global `process.argv` if not supplied. | ||
* @returns {{ command: string, argv: string[] }} | ||
* @throws `INVALID_COMMAND` - user supplied a command not specified in `commands`. | ||
*/ | ||
declare function commandLineCommands( | ||
commands: (string | null)[], | ||
argv?: string[], | ||
): { command: string | null; argv: string[] }; | ||
export = commandLineCommands; | ||
```` | ||
### Additional Details | ||
* Last updated: Mon, 04 Sep 2023 15:41:03 GMT | ||
* Dependencies: none | ||
@@ -17,2 +40,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by CzBuCHi <https://github.com/CzBuCHi>. | ||
These definitions were written by [CzBuCHi](https://github.com/CzBuCHi). |
Sorry, the diff of this file is not supported yet
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4754
17
0
40