DefinitelyTyped/types/cmd-shim/cmd-shim-tests.ts
Andrew Bradley d7590b6d0a cmd-shim: adds new declarations (#22735)
* Fixes typo in my username

* Adds declarations for cmd-shim
2018-01-08 10:21:14 -08:00

9 lines
218 B
TypeScript

import cmdShim = require('cmd-shim');
cmdShim('./whatever/bin.js', './.bin/my-bin', (err) => {
if (err) throw err;
});
cmdShim.ifExists('./whatever/bin.js', './.bin/my-bin', (err) => {
if (err) throw err;
});