{"name":"read-cmd-shim","version":"7.0.0","author":{"name":"GitHub Inc."},"license":"ISC","_id":"read-cmd-shim@7.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/read-cmd-shim#readme","bugs":{"url":"https://github.com/npm/read-cmd-shim/issues"},"dist":{"shasum":"2b2561501ce7fb9bba1a734eb28a926b4b27fe1e","tarball":"http://registry-npm.ywwl.com/read-cmd-shim/download/read-cmd-shim-7.0.0.tgz","fileCount":4,"integrity":"sha512-GkU4W2VYxlMQqyn9JQQm8opl/UIXRzCS7iau12zNZm//CperjtK9CtpNhIh7hzU807BSdcmJIcRWeu0LIkTkYQ==","signatures":[{"sig":"MEYCIQD90Gxt0wf4RnXrdR9npxN6yPz8cbv+X1rDQfIwx/WmpwIhAJTIzTATgkfnCB5bJAFH6bl7oo3BOFMTCnFujNzYWzkF","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/read-cmd-shim@7.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5441,"size":2503,"noattachment":false,"key":"/read-cmd-shim/-/read-cmd-shim-7.0.0.tgz"},"main":"lib/index.js","engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"257e2a79f5acc83d0008fae65dd710a8d9b5f838","scripts":{"lint":"npm run eslint","snap":"node --test --test-update-snapshots './test/**/*.js'","test":"node --test './test/**/*.js'","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run eslint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","test:cover":"node --test --experimental-test-coverage --test-timeout=3000 --test-coverage-lines=100 --test-coverage-functions=100 --test-coverage-branches=100 './test/**/*.js'","test:node20":"node --test test","template-oss-apply":"template-oss-apply --force"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:67710d2b-9550-42ae-9718-d7b391b6c336"}},"repository":{"url":"git+https://github.com/npm/read-cmd-shim.git","type":"git"},"_npmVersion":"11.14.1","description":"Figure out what a cmd-shim is pointing at. This acts as the equivalent of fs.readlink.","directories":{},"templateOSS":{"publish":true,"version":"5.0.0","testRunner":"node:test","latestCiVersion":24,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.1.0","_hasShrinkwrap":false,"devDependencies":{"cmd-shim":"^8.0.0","@npmcli/template-oss":"5.0.0","@npmcli/eslint-config":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/read-cmd-shim_7.0.0_1778265143417_0.7393532466183566","host":"s3://npm-registry-packages-npm-production"},"readme":"# read-cmd-shim\n\nFigure out what a [`cmd-shim`](https://github.com/ForbesLindesay/cmd-shim)\nis pointing at.  This acts as the equivalent of\n[`fs.readlink`](https://nodejs.org/api/fs.html#fs_fs_readlink_path_callback).\n\n### Usage\n\n```\nconst readCmdShim = require('read-cmd-shim')\n\nreadCmdShim('/path/to/shim.cmd').then(destination => {\n  …\n})\n\nconst destination = readCmdShim.sync('/path/to/shim.cmd')\n```\n\n### readCmdShim(path) -> Promise\n\nReads the `cmd-shim` located at `path` and resolves with the _relative_\npath that the shim points at. Consider this as roughly the equivalent of\n`fs.readlink`.\n\nThis can read both `.cmd` style that are run by the Windows Command Prompt\nand Powershell, and the kind without any extension that are used by Cygwin.\n\nThis can return errors that `fs.readFile` returns, except that they'll\ninclude a stack trace from where `readCmdShim` was called.  Plus it can\nreturn a special `ENOTASHIM` exception, when it can't find a cmd-shim in the\nfile referenced by `path`.  This should only happen if you pass in a\nnon-command shim.\n\n### readCmdShim.sync(path)\n\nSame as above but synchronous. Errors are thrown.\n","publish_time":1778265143559,"_cnpm_publish_time":1778265143559,"dist-tags":{"latest":"7.0.1"}}