{"name":"cmd-shim","version":"8.0.0","author":{"name":"GitHub Inc."},"license":"ISC","_id":"cmd-shim@8.0.0","maintainers":[{"name":"gar","email":"gar+npm@danger.computer"},{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"hashtagchris","email":"hashtagchris@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":"5be238f22f40faf3f7e8c92edc3f5d354f7657b2","tarball":"http://registry-npm.ywwl.com/cmd-shim/download/cmd-shim-8.0.0.tgz","fileCount":5,"integrity":"sha512-Jk/BK6NCapZ58BKUxlSI+ouKRbjH1NLZCgJkYoab+vEHUY3f6OzpNBN9u7HFSv9J6TRDGs4PLOHezoKGaFRSCA==","signatures":[{"sig":"MEQCIFD8a+Sr9mjM6K9QvPHYK3Ig3xsTWrztLfBu+NHzayRJAiB65PV7VFSc4Io3X9Au8uvbLAwnCgjchIXw3kVxNpZ8og==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/cmd-shim@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12172,"size":4589,"noattachment":false,"key":"/cmd-shim/-/cmd-shim-8.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^20.17.0 || >=22.9.0"},"gitHead":"ea0f7bd72dfb64d203032073cefdbb9324adc261","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.6.2","description":"Used in npm for command line application support","directories":{},"templateOSS":{"publish":true,"version":"4.27.1","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","@npmcli/template-oss":"4.27.1","@npmcli/eslint-config":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cmd-shim_8.0.0_1761147056881_0.5431348995169949","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":1761147057062,"_cnpm_publish_time":1761147057062,"dist-tags":{"latest":"9.0.2"}}