Socket
Socket
Sign inDemoInstall

@types/command-line-commands

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/command-line-commands - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

6

command-line-commands/index.d.ts

@@ -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

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