{"name":"cmd-shim","version":"9.0.0","author":{"name":"GitHub Inc."},"license":"ISC","_id":"cmd-shim@9.0.0","maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"owlstronaut","email":"owlstronaut@github.com"}],"homepage":"https://github.com/npm/cmd-shim#readme","bugs":{"url":"https://github.com/npm/cmd-shim/issues"},"tap":{"after":"test/zz-cleanup.js","before":"test/00-setup.js","nyc-arg":["--exclude","tap-snapshots/**"],"check-coverage":true},"dist":{"shasum":"ae99e7a5648e2951b40768f5a0097273bf09d152","tarball":"http://registry-npm.ywwl.com/cmd-shim/download/cmd-shim-9.0.0.tgz","fileCount":5,"integrity":"sha512-WA+9a7odYJ+o1EBo3FEfBv3s5RbBF91JSR5G3b+vIa+Be9KWFKWygXrFgesvCdykCEpsd7edfQPKYBgeyyDJHw==","signatures":[{"sig":"MEUCICtD5lvrJNpY72lZalB9OLx7h1PecpIBwM8BVytsdkSNAiEA01v867nFhorYxunBMuunynH5o8ykKhLyyxBH0f7/KwY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/cmd-shim@9.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12182,"size":4588,"noattachment":false,"key":"/cmd-shim/-/cmd-shim-9.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"43fa536195c606ca92bed88769e2d937d39684c3","scripts":{"lint":"npm run eslint","snap":"tap","test":"tap","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ef660d3a-a920-4cef-a79c-70cf3f931cd0"}},"repository":{"url":"git+https://github.com/npm/cmd-shim.git","type":"git"},"_npmVersion":"11.14.1","description":"Used in npm for command line application support","directories":{},"templateOSS":{"publish":true,"version":"5.0.0","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.1.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","@npmcli/template-oss":"5.0.0","@npmcli/eslint-config":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cmd-shim_9.0.0_1778265548987_0.8688548620120982","host":"s3://npm-registry-packages-npm-production"},"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/github/actions/workflow/status/npm/cmd-shim/ci.yml?branch=main)](https://github.com/npm/cmd-shim)\n[![Dependency Status](https://img.shields.io/librariesio/github/npm/cmd-shim)](https://libraries.io/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) -> Promise\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').then(() => {\n  // shims are created!\n})\n```\n\n### cmdShim.ifExists(from, to) -> Promise\n\nThe same as above, but will just continue if the file does not exist.\n","publish_time":1778265549119,"_cnpm_publish_time":1778265549119,"dist-tags":{"latest":"9.0.2"}}