{"name":"resolve-as-bin","version":"2.1.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":"80cb4d155047552727cdb9058f342940e3355ce4","_id":"resolve-as-bin@2.1.0","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-ileUuPIOP+xj+GS/d/EbB2XqRA8T2IeZTFkMggNIW2Mo72VyBMbq+HvIAxdW0ED9D44aEzJwHvUtbMm2PJT5Kw==","shasum":"25638f52e13203eae97125ab26f54082ab98c6e1","tarball":"http://registry-npm.ywwl.com/resolve-as-bin/download/resolve-as-bin-2.1.0.tgz","fileCount":5,"unpackedSize":3395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLkzzCRA9TVsSAnZWagAAAesQAIzT4QPWJlv7zdjy9JhY\nAfHmCApwBMVUSiLtHTe84ACEFBCQ0qMROhkxKGXFe5zBnsxaZVUHcwOecmy+\nJTEz4K0T1zqVU0/hp2r7ewOlBH+VitkA+ExFQS8MsPUPZn9mTLyrTVwMllJc\nSfNwLg2PeGNGyqgtrAbt54brTmkqsNiGUF7XlfJaUEgLMFbbkqFtAyJwMJzJ\nNhSwQruYc/ghfJRwioa5be8a8osbRl6ZaEXN0elMMde11MVliaC9b5y9FLI7\nQyX5brKdtJJCbpEUD1PMhyibmKc0ukiCDLXxx20mwIHh33Gq3IbeLnmR2ghK\nEgIV2IYCWCqOVzYi8rTe6ASOWzISYzG0Skr740CAO5uyS+EUfy42GHtxeZE8\nCAk1BoK44WkhC28A7usq9up5SANtmQENsrxLZ9F+XPKo3roTC7wTvmfR7A95\nlm/4sTeT2R3fJCpp6JUKiN1kGVUY6wEPS+lTkhbQwwP0lQA+yRcg1dNxmC2g\nuV64cprQyRguiCFcpwqt1/dG0XBoTHttrbxNlP0gypt4gfJFuS+bNB6cV2VH\n0lo20oo3kbkFFK3h2+S9vH22YLRxzonbNwLXEs1g2nLyL43UY89sNcAySpce\nsL9VbsbAiJwLxBZaz152aUQfVKqaFFBbq+GJZbXqcoqN3Xr5CJ/QLqeAyYIR\nl+/Z\r\n=ODgq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFt6pVNNE6uJ9vJsXbG8LBubdwMaeU54/Ei3BpqHY7TRAiEAgogp/XLu7sX7z9BvmrULN4csYpcT75kDPn1hIWEodmw="}],"size":1846,"noattachment":false,"key":"/resolve-as-bin/-/resolve-as-bin-2.1.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.1.0_1563315442416_0.5761102997976224"},"_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":1563315442563,"_cnpm_publish_time":1563315442563,"dist-tags":{"latest":"2.1.0"}}