7.0.0 • Published 10 months ago

cmd-shim v7.0.0

Weekly downloads
923,852
License
ISC
Repository
github
Last release
10 months ago

cmd-shim

The cmd-shim used in npm to create executable scripts on Windows, since symlinks are not suitable for this purpose there.

On Unix systems, you should use a symbolic link instead.

Build Status Dependency Status npm version

Installation

npm install cmd-shim

API

cmdShim(from, to) -> Promise

Create a cmd shim at to for the command line program at from. e.g.

var cmdShim = require('cmd-shim');
cmdShim(__dirname + '/cli.js', '/usr/bin/command-name').then(() => {
  // shims are created!
})

cmdShim.ifExists(from, to) -> Promise

The same as above, but will just continue if the file does not exist.

7.0.0

10 months ago

6.0.3

1 year ago

6.0.2

2 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.0

3 years ago

4.1.0

4 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.1.0

6 years ago

2.0.2

9 years ago

2.0.1

11 years ago

2.0.0

11 years ago

1.1.2

11 years ago

1.1.1

12 years ago

1.0.1

12 years ago

1.1.0

12 years ago

1.0.0

12 years ago