{"name":"resolve-as-bin","version":"2.0.0","description":"Resolve a local npm package as binary path","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/saltyshiomix/resolve-as-bin.git"},"author":{"name":"Yoshihide Shiono","email":"shiono.yoshihide@gmail.com"},"license":"MIT","homepage":"https://github.com/saltyshiomix/resolve-as-bin","keywords":["bin","path","npm","resolve-as-bin"],"bugs":{"url":"https://github.com/saltyshiomix/resolve-as-bin/issues","email":"shiono.yoshihide@gmail.com"},"scripts":{"build":"tsc","prepublishOnly":"npm run build"},"dependencies":{"cross-spawn":"^6.0.5"},"devDependencies":{"@types/cross-spawn":"^6.0.0","@types/node":"^12.6.4","typescript":"^3.5.3"},"gitHead":"5415a5013af8e7fb4e07217a6684f4e13d915c16","_id":"resolve-as-bin@2.0.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-AoZ6T6Jya8FbOHcu3e/bRiRXY92V6Qe84AtkvSyiaKH/6yRIVeYq/QIjzHhVW3a4fJdqB2j+lqvS8eoiNSubUA==","shasum":"c521ea2b9d5ad9a1a4a1da14980672c1925c23da","tarball":"http://registry-npm.ywwl.com/resolve-as-bin/download/resolve-as-bin-2.0.0.tgz","fileCount":5,"unpackedSize":3324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLksmCRA9TVsSAnZWagAARdgQAIHkdyvTdmHvdhb/u+jk\nRuEOb/DHiMn5+Oe9LX3js1XM+rXUhLmtuixJQU6u7gJZ/HFBqLHDifF57QH/\nNKwEOGn6I2fmStGM/g9gOUGN/aXuclrTb9IRDW9fTbv+/1gN1u8ec8W/r9wb\npqYylLzcBQrznY5lIk1UFDGHbpv1l2G+hyYyKl2YvpiOqU5/CXjLjDd/vSeO\nvL/U7lUZtbBj+UKBE5fXwZWweBYhNCZ75D44kJI36WN7q/19/I3MYBaU20I2\nU2+yHEdn6ojcxwLND++X97enWS3EDSQ5GGj8SFv1nm29F3CG7yBfWCc5pBa6\n7VW8jz4YfGaBEQ9hrZsu2R4Qvs5w4/CSmDutLA1va/vEr1wo4czHC6yZzPUr\nCsjKcy0ZiBkDwMDgoBx+9LxeuhCdD883bnXgq42rgvhhkNxxw/ZlfgXtSKck\nZxYM2ggBhJeJvLzC7xUo4eXsLJ2qbDAMoyeBf3f9hoeMN0rJBrQCgcCHKexf\nESR1BvWmfZ7WcSgBANjJAYTYcgCb4/yooGDGcA8Y241hP8CKUsjjzUmu7CHH\nqavpO5qGD1qyWWMmowmLq+EbJNXy+fjTMGj21N1Dsr70WR9p7FqM3rws9/9t\n/QsOpwN+hOGmU/WL2eIAYXSTf1oribU1x7n5ObC7OxjzpdIAJ4eA/z83OdID\nckw4\r\n=IkPm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAXPw3rnlsoDhMcSLchiEGznYfjdKR/SzMtfg4cycYxaAiB9liNNxRF+NVp6BtDQoTglzION+rVM7w0l16JSx5viqA=="}],"size":1834,"noattachment":false,"key":"/resolve-as-bin/-/resolve-as-bin-2.0.0.tgz"},"maintainers":[{"name":"saltyshiomix","email":"shiono.yoshihide@gmail.com"}],"_npmUser":{"name":"saltyshiomix","email":"shiono.yoshihide@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/resolve-as-bin_2.0.0_1563314981752_0.8589136656048744"},"_hasShrinkwrap":false,"readme":"<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/resolve-as-bin\"><img src=\"https://img.shields.io/npm/v/resolve-as-bin.svg\"></a>\n  <a href=\"https://www.npmjs.com/package/resolve-as-bin\"><img src=\"https://img.shields.io/npm/dt/resolve-as-bin.svg\"></a>\n</p>\n<p align=\"center\">Resolve a local npm package as the absolute binary path</p>\n\n## Install\n\n```bash\n$ npm install --save resolve-as-bin\n```\n\n## Usage\n\n```js\nimport resolve from 'resolve-as-bin';\n\n// npm installed package\nconsole.log(resolve('rimraf')); // \"/absolute/path/to/node_modules/.bin/rimraf(.cmd)\"\n\n// relative or absolute paths are supported\nconsole.log(resolve('./some-binary')); // \"/absolute/path/to/some-binary(.cmd)\"\nconsole.log(resolve('/absolute/path/another-binary')); // \"/absolute/path/another-binary(.cmd)\"\n```\n","publish_time":1563314981894,"_cnpm_publish_time":1563314981894,"dist-tags":{"latest":"2.1.0"}}