1 | # Installation
|
2 | > `npm install --save @types/command-exists`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for command-exists (https://github.com/mathisonian/command-exists).
|
6 |
|
7 | # Details
|
8 | Files 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
|
11 | export = commandExists;
|
12 |
|
13 | declare function commandExists(commandName: string): Promise<string>;
|
14 | declare function commandExists(
|
15 | commandName: string,
|
16 | cb: (error: null, exists: boolean) => void,
|
17 | ): void;
|
18 |
|
19 | declare 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
|
30 | These definitions were written by [BendingBender](https://github.com/BendingBender).
|
31 |
|
\ | No newline at end of file |