@types/cmd-shim
TypeScript definitions for cmd-shim
Last updated 5 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/cmd-shim 
SYNC missed versions from official npm registry.

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

// Type definitions for cmd-shim 5.0
// Project: https://github.com/npm/cmd-shim
// Definitions by: Andrew Bradley <https://github.com/cspotcode>
//                 Hiroki Osame <https://github.com/privatenumber>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/**
 * 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: Sat, 23 Apr 2022 04:31:35 GMT
  • Dependencies: none
  • Global values: none

Credits

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

Current Tags

  • 5.0.0                                ...           latest (4 years ago)
  • 2.0.0                                ...           ts2.0 (8 years ago)
  • 2.0.0                                ...           ts2.1 (8 years ago)
  • 2.0.0                                ...           ts2.2 (8 years ago)
  • 2.0.0                                ...           ts2.3 (8 years ago)
  • 2.0.0                                ...           ts2.4 (8 years ago)
  • 2.0.0                                ...           ts2.5 (8 years ago)
  • 2.0.0                                ...           ts2.6 (8 years ago)
  • 2.0.0                                ...           ts2.7 (8 years ago)
  • 2.0.0                                ...           ts2.8 (8 years ago)
  • 2.0.0                                ...           ts2.9 (8 years ago)
  • 2.0.0                                ...           ts3.0 (8 years ago)
  • 2.0.0                                ...           ts3.1 (8 years ago)
  • 2.0.1                                ...           ts3.2 (5 years ago)
  • 2.0.1                                ...           ts3.3 (5 years ago)
  • 2.0.1                                ...           ts3.4 (5 years ago)
  • 2.0.1                                ...           ts3.5 (5 years ago)
  • 2.0.1                                ...           ts3.6 (5 years ago)
  • 2.0.1                                ...           ts3.7 (5 years ago)
  • 2.0.1                                ...           ts3.8 (5 years ago)
  • 5.0.0                                ...           ts3.9 (4 years ago)
  • 5.0.0                                ...           ts4.0 (4 years ago)
  • 5.0.0                                ...           ts4.1 (4 years ago)
  • 5.0.0                                ...           ts4.2 (4 years ago)
  • 5.0.0                                ...           ts4.3 (4 years ago)
  • 5.0.0                                ...           ts4.4 (4 years ago)
  • 5.0.0                                ...           ts4.5 (4 years ago)
  • 5.0.0                                ...           ts4.6 (4 years ago)
  • 5.0.0                                ...           ts4.7 (4 years ago)
  • 5.0.0                                ...           ts4.8 (4 years ago)
  • 5.0.0                                ...           ts4.9 (4 years ago)
  • 5.0.0                                ...           ts5.0 (4 years ago)
  • 5.0.0                                ...           ts5.1 (4 years ago)
  • 5.0.0                                ...           ts5.2 (4 years ago)
  • 5.0.0                                ...           ts5.3 (4 years ago)

3 Versions

  • 5.0.0                                ...           4 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |