{"_id":"@pnpm/bins.cmd-shim","_rev":"5-22676f02564258d4698e664aea81fcdb","name":"@pnpm/bins.cmd-shim","dist-tags":{"latest":"1100.0.4"},"versions":{"1100.0.0":{"name":"@pnpm/bins.cmd-shim","version":"1100.0.0","keywords":["pnpm","pnpm11"],"license":"BSD-2-Clause","_id":"@pnpm/bins.cmd-shim@1100.0.0","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"138bdd099b4b15af91e1013fd6249cb2cdbf44a6","tarball":"https://registry.npmjs.org/@pnpm/bins.cmd-shim/-/bins.cmd-shim-1100.0.0.tgz","fileCount":6,"integrity":"sha512-tL4zuIOx1ioHH5gMVG+e2/yZ5/SFOTu/f7iqPeC7bIzMUI0zvbXiPX7lwWwJ1pAv/HZeqvFemVepDZrvZeeKhw==","signatures":[{"sig":"MEQCID/w9VJesEAFqPXKru86Bf9GuB0nGHtJPHBPPSPf++v8AiA02ZDzPS1fBPX60fFPL4xVVCUYSxTSRwuiyqFxmWG9lg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fbins.cmd-shim@1100.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25311},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\"","test":"pn compile && pn .test",".test":"node --test test/test.js test/e2e.test.js","compile":"tsgo --build && pn lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim","type":"git"},"description":"Used in pnpm for command line application support","directories":{},"dependencies":{"cmd-extension":"^2.0.0","@pnpm/fs.graceful-fs":"1100.2.2"},"_hasShrinkwrap":false,"devDependencies":{"memfs":"^4.78.1","tempy":"3.0.0","@types/node":"^22.19.19","@pnpm/bins.cmd-shim":"1100.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bins.cmd-shim_1100.0.0_1789939448924_0.25761338810805","host":"s3://npm-registry-packages-npm-production"}},"1100.0.1":{"name":"@pnpm/bins.cmd-shim","version":"1100.0.1","keywords":["pnpm","pnpm11"],"license":"BSD-2-Clause","_id":"@pnpm/bins.cmd-shim@1100.0.1","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"726a3a7fada2d62f7fc6907e08465e80a67c41e8","tarball":"https://registry.npmjs.org/@pnpm/bins.cmd-shim/-/bins.cmd-shim-1100.0.1.tgz","fileCount":6,"integrity":"sha512-pywL8IUGh6vh99tWCRs1pkf3xoIBp864IQH6b02Qn5xIRAt+VfEE4UezcVvVtRbs3iiggOxypfQO0GOJNuPYqg==","signatures":[{"sig":"MEUCIHPSb4QXbBb713RwmjFZHwL+Gkpgj3/rHwIVefwkN5ZnAiEA/5OaWVPbANdKYe2h5VNR201u90mFHk2MnUxR23Miqjs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCu5rdnrp/EUCdzK+M/AEikFeLlnDvAdPzWoRIKphqPSQIgHd9jRkuYAImdmXDb+6LJasYciG5yPrNBzIXCh1V7L/M=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fbins.cmd-shim@1100.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":33682},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\"","test":"pn compile && pn .test",".test":"node --test test/test.js test/e2e.test.js","compile":"tsgo --build && pn lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim","type":"git"},"description":"Used in pnpm for command line application support","directories":{},"dependencies":{"cmd-extension":"^2.0.0","@pnpm/fs.graceful-fs":"1100.2.3"},"_hasShrinkwrap":false,"devDependencies":{"memfs":"^4.79.0","tempy":"3.0.0","@types/node":"^22.19.19","@pnpm/bins.cmd-shim":"1100.0.1"},"_npmOperationalInternal":{"tmp":"tmp/bins.cmd-shim_1100.0.1_1790331706102_0.49966180874309174","host":"s3://npm-registry-packages-npm-production"}},"1100.0.2":{"name":"@pnpm/bins.cmd-shim","version":"1100.0.2","keywords":["pnpm","pnpm11"],"license":"BSD-2-Clause","_id":"@pnpm/bins.cmd-shim@1100.0.2","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"3e042acd0c19683149cb863295af22496bdb317c","tarball":"https://registry.npmjs.org/@pnpm/bins.cmd-shim/-/bins.cmd-shim-1100.0.2.tgz","fileCount":6,"integrity":"sha512-gXDeH0hC4Qvjc5St4hsnBkx7LSMsu5UZ/dEprLGTXXXP0Pmv4P3LenhR4zbi6nKgeM7pwjX8wN7cpSmz+c05vg==","signatures":[{"sig":"MEQCIFHWgHu8o9N3JCpS+cARVrWrYSGKi15Ads3K2y11LFBUAiAUl8IMW3Tdonz4gYg4EnPhhnKmx2PG31wo7uS436YxzQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFsl/tT1eEjU8fqwASC0qhBoG503nUAnupRbVZcnccSlAiEAvHvgR9orZOQhLvmVMWEtPN7V5oBMVNkwaVdYro7QQC4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fbins.cmd-shim@1100.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":42793},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\"","test":"pn compile && pn .test",".test":"node --test test/test.js test/e2e.test.js","compile":"tsgo --build && pn lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim","type":"git"},"description":"Used in pnpm for command line application support","directories":{},"dependencies":{"@pnpm/error":"1100.2.1","cmd-extension":"^2.0.0","@pnpm/fs.graceful-fs":"1100.2.4"},"_hasShrinkwrap":false,"devDependencies":{"memfs":"^4.79.0","tempy":"3.0.0","@types/node":"^22.19.19","@pnpm/bins.cmd-shim":"1100.0.2"},"_npmOperationalInternal":{"tmp":"tmp/bins.cmd-shim_1100.0.2_1790579772492_0.7962897786427869","host":"s3://npm-registry-packages-npm-production"}},"1100.0.3":{"name":"@pnpm/bins.cmd-shim","version":"1100.0.3","keywords":["pnpm","pnpm11"],"license":"BSD-2-Clause","_id":"@pnpm/bins.cmd-shim@1100.0.3","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"c0f426d0af3c063be3ef2a00240e7faffe665bf8","tarball":"https://registry.npmjs.org/@pnpm/bins.cmd-shim/-/bins.cmd-shim-1100.0.3.tgz","fileCount":6,"integrity":"sha512-oNf/mK9EZ2iIVJeOFfQmffsyHmJf3ykIn1KKUBuLWCqwU8U7qVjT2zzqJZynfh/LI/mBVTS6krxmA+QyIprg7A==","signatures":[{"sig":"MEUCIQC4JtAvJJZgLERlI+b3n8A4KEwteTlkZy8UrXPIjnFojAIgawY1L9xS0VFCHhTEAiSrTQCIepv35zaKxVgG9M08UKk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIDI8toV0mCHZv9FYnqbXAlc41SQ4oTIHjZzd9QEtgjzZAiEAysYh1DSo1bnbaDLiholoQ7JAbBye7SARhmbobtcoUtA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fbins.cmd-shim@1100.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43512},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\"","test":"pn compile && pn .test",".test":"node --test test/test.js test/e2e.test.js","compile":"tsgo --build && pn lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim","type":"git"},"description":"Used in pnpm for command line application support","directories":{},"dependencies":{"@pnpm/error":"1100.2.1","cmd-extension":"^2.0.0","@pnpm/fs.graceful-fs":"1100.2.4"},"_hasShrinkwrap":false,"devDependencies":{"memfs":"^4.79.0","tempy":"3.0.0","@types/node":"^22.19.19","@pnpm/bins.cmd-shim":"1100.0.3"},"_npmOperationalInternal":{"tmp":"tmp/bins.cmd-shim_1100.0.3_1790780985751_0.3626555529530713","host":"s3://npm-registry-packages-npm-production"}},"1100.0.4":{"_id":"@pnpm/bins.cmd-shim@1100.0.4","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"8c47cfd8c9cb4c0db289487c4c2debf43e9b83eb","tarball":"https://registry.npmjs.org/@pnpm/bins.cmd-shim/-/bins.cmd-shim-1100.0.4.tgz","fileCount":16,"integrity":"sha512-QOA5gE6lKPmN+OEx3dgT0LIO2bqx786skwiopqtNXKlmOf8BbFVcoSnNWxLzQOc6/anQj5u7Ll7HDyCH1hxrMw==","signatures":[{"sig":"MEUCIFSNdZf8m7xOqLZoMCctLdlHHRyZKe7+mws0DpUf+7FOAiEAvbw5ulDXLeMes0zpRJhnzG9OcYJJj7B5VsP8NWiDPiA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAH3DbxH7JYJ7PrrF1J9CoELlySkdJeWwKYBnyfTcWeXAiAw/tZ+uLQRznnza2A6B7bN+/JzauTkqIM4Rpn1rThzyQ=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fbins.cmd-shim@1100.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":43577},"main":"lib/index.js","name":"@pnpm/bins.cmd-shim","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","license":"BSD-2-Clause","scripts":{"lint":"eslint \"src/**/*.ts\"","test":"pn compile && pn .test",".test":"node --test test/test.js test/e2e.test.js","compile":"tsgo --build && pn lint --fix"},"version":"1100.0.4","_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim#readme","keywords":["pnpm","pnpm11"],"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim","type":"git"},"description":"Used in pnpm for command line application support","directories":{},"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"dependencies":{"@pnpm/error":"1100.2.2","cmd-extension":"^2.0.0","@pnpm/fs.graceful-fs":"1100.2.5"},"_hasShrinkwrap":false,"devDependencies":{"memfs":"^4.80.0","tempy":"3.0.0","@types/node":"^22.19.19","@pnpm/bins.cmd-shim":"1100.0.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bins.cmd-shim_1100.0.4_1791245757125_0.2955372161282426"}}},"time":{"created":"2026-09-20T21:24:08.770Z","modified":"2026-10-06T00:15:57.566Z","1100.0.0":"2026-09-20T21:24:09.062Z","1100.0.1":"2026-09-25T10:21:46.171Z","1100.0.2":"2026-09-28T07:16:12.586Z","1100.0.3":"2026-09-30T15:09:45.853Z","1100.0.4":"2026-10-06T00:15:57.221Z"},"bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"license":"BSD-2-Clause","homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim#readme","keywords":["pnpm","pnpm11"],"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/bins/cmd-shim","type":"git"},"description":"Used in pnpm for command line application support","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"readme":"# @pnpm/bins.cmd-shim\n\n> Used in pnpm for command line application support\n\nThe cmd-shim used in [pnpm](https://github.com/pnpm/pnpm) to create executable scripts.\n\n## Installation\n\n```sh\nnpm install --save @pnpm/bins.cmd-shim\n```\n\n## API\n\n### `cmdShim(src, to, opts?): Promise<void>`\n\nCreate a cmd shim at `to` for the command line program at `src`.\ne.g.\n\n```javascript\nimport { cmdShim } from '@pnpm/bins.cmd-shim'\ncmdShim('/path/to/cli.js', '/usr/bin/command-name')\n  .catch(err => console.error(err))\n```\n\n### `cmdShimIfExists(src, to, opts?): Promise<void>`\n\nCreates shims like `cmdShim`, but ignores all creation errors, including a missing source file.\n\n#### Arguments:\n\n- `opts.preserveSymlinks` - _Boolean_ - if true, `--preserve-symlinks` is added to the options passed to NodeJS.\n- `opts.nodePath` - `string | string[]` - sets the [NODE_PATH](https://nodejs.org/api/cli.html#cli_node_path_path) env variable.\n- `opts.prependToPath` - _String_ - prepends the passed path to PATH before executing the Node.js program.\n- `opts.nodeExecPath` - _String_ - sets the path to the Node.js executable.\n- `opts.createCmdFile` - _Boolean_ - is `true` on Windows by default. If true, creates a cmd file.\n- `opts.createPwshFile` - _Boolean_ - is `true` by default. If true, creates a powershell file.\n- `opts.progArgs` - `string[]` - optional arguments prepended to the CLI arguments\n\n```javascript\nimport { cmdShim } from '@pnpm/bins.cmd-shim'\ncmdShim('/path/to/cli.js', '/usr/bin/command-name', { preserveSymlinks: true })\n  .catch(err => console.error(err))\n```\n\n## License\n\n[BSD-2-Clause](./LICENSE) © [Zoltan Kochan](http://kochan.io)\n","readmeFilename":""}