{
"_from": "cmd-shim@3.0.3",
"_id": "cmd-shim@3.0.3",
"_inBundle": false,
"_integrity": "sha512-DtGg+0xiFhQIntSBRzL2fRQBnmtAVwXIDo4Qq46HPpObYquxMaZS4sb82U9nH91qJrlosC1wa9gwr0QyL/HypA==",
"_location": "/npm/cmd-shim",
"_phantomChildren": {},
"_requested": {
"escapedName": "cmd-shim",
"fetchSpec": "3.0.3",
"name": "cmd-shim",
"raw": "cmd-shim@3.0.3",
"rawSpec": "3.0.3",
"registry": true,
"saveSpec": null,
"type": "version"
},
"_requiredBy": [
"#USER",
"/npm",
"/npm/bin-links",
"/npm/gentle-fs"
],
"_resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-3.0.3.tgz",
"_shasum": "2c35238d3df37d98ecdd7d5f6b8dc6b21cadc7cb",
"_shrinkwrap": null,
"_spec": "cmd-shim@3.0.3",
"_where": "/Users/isaacs/dev/npm/cli",
"bugs": {
"url": "https://github.com/npm/cmd-shim/issues"
},
"bundleDependencies": false,
"dependencies": {
"graceful-fs": "^4.1.2",
"mkdirp": "~0.5.0"
},
"deprecated": false,
"description": "Used in npm for command line application support",
"devDependencies": {
"rimraf": "~2.2.8",
"tap": "^12.7.0"
},
"files": [
"index.js",
"lib"
],
"homepage": "https://github.com/npm/cmd-shim#readme",
"license": "ISC",
"name": "cmd-shim",
"optionalDependencies": {},
"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/npm/cmd-shim)\n[](https://david-dm.org/npm/cmd-shim)\n[](https://www.npmjs.com/package/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",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/cmd-shim.git"
},
"scripts": {
"postpublish": "git push origin --follow-tags",
"postversion": "npm publish",
"preversion": "npm test",
"snap": "TAP_SNAPSHOT=1 tap test/*.js --100",
"test": "tap test/*.js --100"
},
"version": "3.0.3"
}