UNPKG

@types/cmd-shim

Version:
19 lines (16 loc) 553 B
/** * 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;