UNPKG

927 BMarkdownView Raw
1# Installation
2> `npm install --save @types/command-exists`
3
4# Summary
5This package contains type definitions for command-exists (https://github.com/mathisonian/command-exists).
6
7# Details
8Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/command-exists.
9## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/command-exists/index.d.ts)
10````ts
11export = commandExists;
12
13declare function commandExists(commandName: string): Promise<string>;
14declare function commandExists(
15 commandName: string,
16 cb: (error: null, exists: boolean) => void,
17): void;
18
19declare namespace commandExists {
20 function sync(commandName: string): boolean;
21}
22
23````
24
25### Additional Details
26 * Last updated: Mon, 06 Nov 2023 22:41:05 GMT
27 * Dependencies: none
28
29# Credits
30These definitions were written by [BendingBender](https://github.com/BendingBender).
31
\No newline at end of file