mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
2.1 KiB
35 lines
2.1 KiB
{
|
|
"name": "cmd-shim",
|
|
"version": "2.0.0",
|
|
"description": "Used in npm for command line application support",
|
|
"scripts": {
|
|
"test": "tap test/*.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ForbesLindesay/cmd-shim.git"
|
|
},
|
|
"license": "BSD",
|
|
"optionalDependencies": {
|
|
"graceful-fs": "^3.0.2"
|
|
},
|
|
"dependencies": {
|
|
"mkdirp": "~0.5.0",
|
|
"graceful-fs": "^3.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"tap": "~0.4.11",
|
|
"rimraf": "~2.2.8"
|
|
},
|
|
"readme": "# cmd-shim\n\nThe cmd-shim used in npm to create executable scripts on Windows,\nsince symlinks are not suitable for this purpose there.\n\nOn Unix systems, you should use a symbolic link instead.\n\n[](https://travis-ci.org/ForbesLindesay/cmd-shim)\n[](https://gemnasium.com/ForbesLindesay/cmd-shim)\n[](http://badge.fury.io/js/cmd-shim)\n\n## Installation\n\n```\nnpm install cmd-shim\n```\n\n## API\n\n### cmdShim(from, to, cb)\n\nCreate a cmd shim at `to` for the command line program at `from`.\ne.g.\n\n```javascript\nvar cmdShim = require('cmd-shim');\ncmdShim(__dirname + '/cli.js', '/usr/bin/command-name', function (err) {\n if (err) throw err;\n});\n```\n\n### cmdShim.ifExists(from, to, cb)\n\nThe same as above, but will just continue if the file does not exist.\nSource:\n\n```javascript\nfunction cmdShimIfExists (from, to, cb) {\n fs.stat(from, function (er) {\n if (er) return cb()\n cmdShim(from, to, cb)\n })\n}\n```\n",
|
|
"readmeFilename": "README.md",
|
|
"bugs": {
|
|
"url": "https://github.com/ForbesLindesay/cmd-shim/issues"
|
|
},
|
|
"homepage": "https://github.com/ForbesLindesay/cmd-shim",
|
|
"_id": "cmd-shim@2.0.0",
|
|
"_shasum": "64fd5859110051571406f61821bf37d366bc3cb3",
|
|
"_resolved": "git://github.com/othiym23/cmd-shim#12de64ca97f45ac600910092f19afacc3d5376dd",
|
|
"_from": "git://github.com/othiym23/cmd-shim",
|
|
"_fromGithub": true
|
|
}
|
|
|