{"name":"cmd-shim","version":"9.0.2","author":{"name":"GitHub Inc."},"license":"ISC","_id":"cmd-shim@9.0.2","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":"292685af98a05346c0499be150bbdb9e0478bf60","tarball":"http://registry-npm.ywwl.com/cmd-shim/download/cmd-shim-9.0.2.tgz","fileCount":5,"integrity":"sha512-xVHoI+wNrM4tDB9iC1idf/8D0tYnVimlBp/5zHW+x1sGjjRD69NvR9th3Z1JAYGN/BTW4he6aZFYV6kzy+k+jw==","signatures":[{"sig":"MEUCIQCUTVKRLf5zXifqg9qC4GUYjiRW/QzeQcX7qk6k1eK8bwIgDUtDrIqOl6kvgfKMW9r167YpHSrSgJP8frfJYz+ZW7Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/cmd-shim@9.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":13440,"size":4844,"noattachment":false,"key":"/cmd-shim/-/cmd-shim-9.0.2.tgz"},"main":"lib/index.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"7667c245e7d9259b5f88b77fb71b497ffcc26976","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.17.0","description":"Used in npm for command line application support","directories":{},"templateOSS":{"publish":true,"version":"5.1.1","//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.3.1","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.1","@npmcli/template-oss":"5.1.1","@npmcli/eslint-config":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/cmd-shim_9.0.2_1781895877411_0.5363384926143127","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":1781895877577,"_cnpm_publish_time":1781895877577,"dist-tags":{"latest":"9.0.2"}}