{
"_from": "read-cmd-shim@1.0.5",
"_id": "read-cmd-shim@1.0.5",
"_inBundle": false,
"_integrity": "sha512-v5yCqQ/7okKoZZkBQUAfTsQ3sVJtXdNfbPnI5cceppoxEVLYA3k+VtV2omkeo8MS94JCy4fSiUwlRBAwCVRPUA==",
"_location": "/npm/read-cmd-shim",
"_phantomChildren": {},
"_requested": {
"escapedName": "read-cmd-shim",
"fetchSpec": "1.0.5",
"name": "read-cmd-shim",
"raw": "read-cmd-shim@1.0.5",
"rawSpec": "1.0.5",
"registry": true,
"saveSpec": null,
"type": "version"
},
"_requiredBy": [
"#USER",
"/npm",
"/npm/gentle-fs"
],
"_resolved": "https://registry.npmjs.org/read-cmd-shim/-/read-cmd-shim-1.0.5.tgz",
"_shasum": "87e43eba50098ba5a32d0ceb583ab8e43b961c16",
"_shrinkwrap": null,
"_spec": "read-cmd-shim@1.0.5",
"_where": "/Users/ruyadorno/Documents/workspace/cli",
"author": {
"email": "me@re-becca.org",
"name": "Rebecca Turner",
"url": "http://re-becca.org/"
},
"bugs": {
"url": "https://github.com/npm/read-cmd-shim/issues"
},
"bundleDependencies": false,
"dependencies": {
"graceful-fs": "^4.1.2"
},
"deprecated": false,
"description": "Figure out what a cmd-shim is pointing at. This acts as the equivalent of fs.readlink.",
"devDependencies": {
"cmd-shim": "^3.0.0",
"rimraf": "^2.4.3",
"standard": "^5.2.2",
"tap": "^12.7.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/npm/read-cmd-shim#readme",
"license": "ISC",
"main": "index.js",
"name": "read-cmd-shim",
"optionalDependencies": {},
"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```\nvar readCmdShim = require('read-cmd-shim')\n\nreadCmdShim('/path/to/shim.cmd', function (er, destination) {\n …\n})\n\nvar destination = readCmdShim.sync('/path/to/shim.cmd')\n```\n\n### readCmdShim(path, callback)\n\nReads the `cmd-shim` located at `path` and calls back 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\n### readCmdShim.sync(path)\n\nSame as above but synchronous. Errors are thrown.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/read-cmd-shim.git"
},
"scripts": {
"pretest": "standard",
"test": "tap test/*.js --100"
},
"version": "1.0.5"
}