{"_id":"cmd-shim-hotfix","_rev":"1-abd93a307d140556d4411dc5509d7155","name":"cmd-shim-hotfix","dist-tags":{"latest":"3.0.3"},"versions":{"3.0.3":{"name":"cmd-shim-hotfix","version":"3.0.3","description":"Used in npm for command line application support","scripts":{"test":"tap test/*.js --100","snap":"TAP_SNAPSHOT=1 tap test/*.js --100","preversion":"npm test","postversion":"npm publish","postpublish":"git push origin --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/cnpm/cmd-shim.git"},"license":"ISC","dependencies":{"graceful-fs":"^4.1.2","mkdirp":"~0.5.0"},"devDependencies":{"rimraf":"~2.2.8","tap":"^12.7.0"},"gitHead":"4b5c04dbdd173613c54a9a7c290669ac1dc201de","bugs":{"url":"https://github.com/cnpm/cmd-shim/issues"},"homepage":"https://github.com/cnpm/cmd-shim#readme","_id":"cmd-shim-hotfix@3.0.3","_nodeVersion":"12.13.1","_npmVersion":"6.9.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"integrity":"sha512-fn4AxpPZMCSVPvlfA+YJ2A1dR0elTQuwEXF73U91hQkuaDaYKNPz2XsC+driC4zv+avqXFfUty7Y/2KuSuHV2A==","shasum":"f46a073b74538199330683ad985a5912f8430dea","tarball":"https://registry.npmjs.org/cmd-shim-hotfix/-/cmd-shim-hotfix-3.0.3.tgz","fileCount":5,"unpackedSize":11649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd67LnCRA9TVsSAnZWagAAU0MQAI1ZfXDZRWagogJDzhxr\n9MneHtbUvvPZieivJvp/UK3RAlptVgu5QxRzlFXRwl8OoLy4eLAkELjcpu0O\nVxhq5P7Hpg3Wh2LPEoaDmHYn2cKvxaVLVChHKlyrCAyPJtdZuSSapjZqQWbj\njw6g2slKUStVSLwCLDGmIRb+8S/Nbu+b35Gi3RIEC17H3NL8C9o4LUk1tVi0\njJ8kVVTrFWIQgB1cORVVIPBd6YoOT36McT8fcLn0jui64mIHNMHDX6uPA258\ngM7arstILpdg5/jriSshSkGcTNd27NIegrh9Rk//a62L/sLj1pKrvNOgdWEl\ni9+KeKEtUCJKGjIvRZ8ppUHCQAxSHNumECv//+rZS65mrqfRSrG34UZ1RhWv\nKk+x2wpFvsKP3SICP9ruAXR1aXkfhLFrgDk1L04KcclwX9owru++0bAaklRy\nPSdxbNhoEdsKH3PzW14cuD/FOlBv/Awps4aRuaXBYC7D9Ydi4QM+MAjACwi0\nq/ZVQO2W0xhnPdePDFo2tPncPF7sGBjlR/WhjMKvyXXtepJbr/zLXR54vSRK\nT0W5zEnsuX83cqbCIJf8xIAnheQFo8NAAzwmg4vTJncPWC+B2BTyAOUnYhA/\nUjmPa2EdBWyQK2utqiD8fYILXkYm9adtqi0Cppf07JNRTy3YXcnx1oZfK0Nh\nv1m0\r\n=3O6b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFzgQ15biwhhrxVCW06SB8AbXXLbBA0lJZMT4FFI1bUPAiA9+2Uhl8Eym2Vox4brXxxc4acfBeKkL4OffQIdoQPBCg=="}]},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cmd-shim-hotfix_3.0.3_1575727847132_0.2048406785898096"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-07T14:10:47.131Z","3.0.3":"2019-12-07T14:10:47.318Z","modified":"2022-04-12T06:53:35.756Z"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"description":"Used in npm for command line application support","homepage":"https://github.com/cnpm/cmd-shim#readme","repository":{"type":"git","url":"git+https://github.com/cnpm/cmd-shim.git"},"bugs":{"url":"https://github.com/cnpm/cmd-shim/issues"},"license":"ISC","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[![Build Status](https://img.shields.io/travis/npm/cmd-shim/master.svg)](https://travis-ci.org/npm/cmd-shim)\n[![Dependency Status](https://img.shields.io/david/npm/cmd-shim.svg)](https://david-dm.org/npm/cmd-shim)\n[![NPM version](https://img.shields.io/npm/v/cmd-shim.svg)](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"}