@types/cmd-shim
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

Installation

npm install --save @types/cmd-shim

Summary

This package contains type definitions for cmd-shim (https://github.com/npm/cmd-shim).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cmd-shim.

index.d.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;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Andrew Bradley, and Hiroki Osame.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cmd-shim

Weekly Downloads

27,002

Version

5.0.2

License

MIT

Unpacked Size

3.84 kB

Total Files

5

Last publish

Collaborators

  • types