@types/cmd-shim
Version:
TypeScript definitions for cmd-shim
38 lines (30 loc) • 1.2 kB
Markdown
> `npm install --save @types/cmd-shim`
This package contains type definitions for cmd-shim (https://github.com/npm/cmd-shim).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cmd-shim.
````ts
/**
* Create a cmd shim at `to` for the command line program at `from`. e.g.
*
* cmdShim(__dirname + '/cli.js', '/usr/bin/command-name');
*/
declare function cmdShim(from: string, to: string): Promise<void>;
declare namespace cmdShim {
/**
* Create a cmd shim at `to` for the command line program at `from`, but will just
* continue if the file does not exist.
*
* cmdShim.ifExists(__dirname + '/cli.js', '/usr/bin/command-name');
*/
function ifExists(from: string, to: string): Promise<void>;
}
export = cmdShim;
````
* Last updated: Mon, 06 Nov 2023 22:41:05 GMT
* Dependencies: none
These definitions were written by [Andrew Bradley](https://github.com/cspotcode), and [Hiroki Osame](https://github.com/privatenumber).