{"_id":"read-cmd-shim@7.0.1","bugs":{"url":"https://github.com/npm/read-cmd-shim/issues"},"dist":{"shasum":"7043a9fc428173e91a50af57e84a87045382c106","tarball":"http://registry-npm.ywwl.com/read-cmd-shim/download/read-cmd-shim-7.0.1.tgz","fileCount":4,"integrity":"sha512-GhAsW4iJS0xNqv8P6HocT3gb5HCKHtEBKLIN7fE2oWr27jGIEihu48lXyGGeexkbiLv1XAbwyXvgjYMfT81kZA==","signatures":[{"sig":"MEYCIQDybTTP/V5EJIPrZaelWIUiex1M7FiadCbcMaHjgTA4oAIhALu5PdcRId20Pocvj6h9LsXgNuX0elXd0DrXenKGhxQZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDW3s48Hd0U+pOJ3oRRgAun9too4yc0yZda5mgM1mHAoAiEAj57+n4NwvDPvbVpu1LV/Tcnu8IwigMm+kB/CP39IEs8="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/read-cmd-shim@7.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5450,"size":2518,"noattachment":false,"key":"/read-cmd-shim/-/read-cmd-shim-7.0.1.tgz"},"main":"lib/index.js","name":"read-cmd-shim","author":{"name":"GitHub Inc."},"engines":{"node":"^22.22.2 || ^24.15.0 || >=26.0.0"},"gitHead":"9887cf0f2416f05b41cd3318b8fce08d21a20d4e","license":"ISC","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"},"version":"7.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:67710d2b-9550-42ae-9718-d7b391b6c336"}},"homepage":"https://github.com/npm/read-cmd-shim#readme","repository":{"url":"git+https://github.com/npm/read-cmd-shim.git","type":"git"},"_npmVersion":"12.1.0","description":"Figure out what a cmd-shim is pointing at. This acts as the equivalent of fs.readlink.","directories":{},"maintainers":[{"name":"saquibkhan","email":"saquibkhan@github.com"},{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},{"name":"reggi","email":"reggi@github.com"},{"name":"martinrrm","email":"martin.ruiz.mares@gmail.com"}],"templateOSS":{"publish":true,"version":"5.1.1","testRunner":"node:test","latestCiVersion":24,"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"26.10.0","_hasShrinkwrap":false,"devDependencies":{"cmd-shim":"^9.0.0","@npmcli/template-oss":"5.1.1","@npmcli/eslint-config":"^7.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/read-cmd-shim_7.0.1_1790200988735_0.5810173178539948"},"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":1790200988829,"_cnpm_publish_time":1790200988829,"dist-tags":{"latest":"7.0.1"}}