3 The cmd-shim used in npm to create executable scripts on Windows,
4 since symlinks are not suitable for this purpose there.
6 On Unix systems, you should use a symbolic link instead.
8 [![Build Status](https://img.shields.io/travis/ForbesLindesay/cmd-shim/master.svg)](https://travis-ci.org/ForbesLindesay/cmd-shim)
9 [![Dependency Status](https://img.shields.io/david/ForbesLindesay/cmd-shim.svg)](https://david-dm.org/ForbesLindesay/cmd-shim)
10 [![NPM version](https://img.shields.io/npm/v/cmd-shim.svg)](https://www.npmjs.com/package/cmd-shim)
20 ### cmdShim(from, to, cb)
22 Create a cmd shim at `to` for the command line program at `from`.
26 var cmdShim = require('cmd-shim');
27 cmdShim(__dirname + '/cli.js', '/usr/bin/command-name', function (err) {
32 ### cmdShim.ifExists(from, to, cb)
34 The same as above, but will just continue if the file does not exist.
38 function cmdShimIfExists (from, to, cb) {
39 fs.stat(from, function (er) {