{"_id":"project-bin-path","_rev":"269679","name":"project-bin-path","description":"This will give path to the project's local bin","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"time":{"modified":"2021-06-03T17:18:03.000Z","created":"2017-11-25T21:34:56.434Z","2.0.0":"2018-01-15T05:56:38.326Z","1.1.1":"2017-12-11T11:49:14.278Z","1.1.0":"2017-11-27T11:39:17.776Z","1.0.0":"2017-11-27T10:30:02.972Z","0.0.4":"2017-11-26T10:52:23.633Z","0.0.3":"2017-11-26T04:46:06.550Z","0.0.2":"2017-11-26T00:27:00.768Z","0.0.1":"2017-11-25T23:15:11.013Z","0.0.0":"2017-11-25T21:34:56.434Z"},"users":{"ajaynarainmathur":true},"author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ajaymathur/project-bin-path.git"},"versions":{"2.0.0":{"name":"project-bin-path","version":"2.0.0","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ajaymathur/project-bin-path.git"},"keywords":["path","bin","node_modules","package","script"],"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"find-up":"^2.1.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"417b9e55396784ce89831b528d36871535a68270","bugs":{"url":"https://github.com/ajaymathur/project-bin-path/issues"},"homepage":"https://github.com/ajaymathur/project-bin-path#readme","_id":"project-bin-path@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"c7e169cb68c864fc6d67608042423fe0a1f9f502","size":37367,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-2.0.0.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-2.0.0.tgz_1515995798241_0.5364354469347745"},"directories":{},"publish_time":1515995798326,"_hasShrinkwrap":false,"_cnpm_publish_time":1515995798326},"1.1.1":{"name":"project-bin-path","version":"1.1.1","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/ajaymathur/project-bin-path.git"},"keywords":["path","bin","node_modules"],"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"find-up":"^2.1.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"cbbe221ecbc0b55a8dde81bbcb5ed427aa7bead1","bugs":{"url":"https://github.com/ajaymathur/project-bin-path/issues"},"homepage":"https://github.com/ajaymathur/project-bin-path#readme","_id":"project-bin-path@1.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"7a8b3817f54c41a14cd5a6e904ca5400c34fc17b","size":37614,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-1.1.1.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-1.1.1.tgz_1512992954091_0.1397740498650819"},"directories":{},"publish_time":1512992954278,"_hasShrinkwrap":false,"_cnpm_publish_time":1512992954278},"1.1.0":{"name":"project-bin-path","version":"1.1.0","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"find-up":"^2.1.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"7b11fe58b34c60f7737493e43bd77b28307aab92","_id":"project-bin-path@1.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"9d17ca3c76f0087461e2fbfa2a55859cfd794733","size":37300,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-1.1.0.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-1.1.0.tgz_1511782757684_0.3238958544097841"},"directories":{},"publish_time":1511782757776,"_hasShrinkwrap":false,"_cnpm_publish_time":1511782757776},"1.0.0":{"name":"project-bin-path","version":"1.0.0","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"find-up":"^2.1.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"639c584053cc272dd3c4334fcf103cccbf5df069","_id":"project-bin-path@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"8a4d1f4c301b4e46df99e1d8f86f6ed3cc9fc8e3","size":36986,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-1.0.0.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-1.0.0.tgz_1511778602903_0.4621511180885136"},"directories":{},"publish_time":1511778602972,"_hasShrinkwrap":false,"_cnpm_publish_time":1511778602972},"0.0.4":{"name":"project-bin-path","version":"0.0.4","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"pkg-dir":"^2.0.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"b99ad630ce3ba878fb4c58b833213141e5c7cd64","_id":"project-bin-path@0.0.4","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"ba03efed527e2b9d5aed8fc847db74940621a08c","size":37000,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-0.0.4.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-0.0.4.tgz_1511693542338_0.29008279577828944"},"directories":{},"publish_time":1511693543633,"_hasShrinkwrap":false,"_cnpm_publish_time":1511693543633},"0.0.3":{"name":"project-bin-path","version":"0.0.3","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"pkg-dir":"^2.0.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"8c623a119322ec0876e30aed5a933c8d8991ba11","_id":"project-bin-path@0.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"c709c027adfcce1a9211c34baae5ec8c3cce5e6b","size":36880,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-0.0.3.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-0.0.3.tgz_1511671566456_0.21099864691495895"},"directories":{},"publish_time":1511671566550,"_hasShrinkwrap":false,"_cnpm_publish_time":1511671566550},"0.0.2":{"name":"project-bin-path","version":"0.0.2","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"pkg-dir":"^2.0.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"08dcbba317ec5087dc43500cbe3fdb059f3a567a","_id":"project-bin-path@0.0.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"5e5dea790015842128935e905ca207fc6af27f2f","size":36732,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-0.0.2.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-0.0.2.tgz_1511656020502_0.5131363484542817"},"directories":{},"publish_time":1511656020768,"_hasShrinkwrap":false,"_cnpm_publish_time":1511656020768},"0.0.1":{"name":"project-bin-path","version":"0.0.1","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"pkg-dir":"^2.0.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"gitHead":"0c9654414a1b59f0f72572b45fdd8a2a23f3969a","_id":"project-bin-path@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"d53c35c8e156401d13eeeb857b21ac67bd6c366a","size":36715,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-0.0.1.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-0.0.1.tgz_1511651710805_0.9136976518202573"},"directories":{},"publish_time":1511651711013,"_hasShrinkwrap":false,"_cnpm_publish_time":1511651711013},"0.0.0":{"name":"project-bin-path","version":"0.0.0","description":"This will give path to the project's local bin","main":"index.js","author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"scripts":{"test":"xo && ava"},"engines":{"node":">=4"},"license":"MIT","dependencies":{"pkg-dir":"^2.0.0"},"devDependencies":{"ava":"^0.23.0","xo":"^0.18.2"},"gitHead":"254cfade13e15fae7856383c6c196c21c1be8fbc","_id":"project-bin-path@0.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"},"dist":{"shasum":"096e4c1295a1862eb72797e4c091084393b5e137","size":35495,"noattachment":false,"key":"/project-bin-path/-/project-bin-path-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/project-bin-path/download/project-bin-path-0.0.0.tgz"},"maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/project-bin-path-0.0.0.tgz_1511645696324_0.8875072875525802"},"directories":{},"publish_time":1511645696434,"_hasShrinkwrap":false,"_cnpm_publish_time":1511645696434}},"readme":"## project-bin-path\n\n![build description](https://travis-ci.org/ajaymathur/project-bin-path.svg?branch=master)\n\n> Find path to local bin of Node.js or NPM package\n\n***Inspired by [sindresorhus/pkg-dir](https://github.com/sindresorhus/pkg-dir)***\n\n### Install:\n\n`npm install project-bin-path`\n\nor\n\n`yarn add project-bin-path`\n\n### Usage:\n\nProject structure\n\n```text\n???? Users/\n  ???? ajaynarainmathur/\n      ???? test-project/\n          ???? node_modules/\n              ???? .bin/\n          ???? package.json\n              ???? dist/\n                  ???? foo.js\n```\n\n```javascript\n// foo.js\nconst projectBinPath = require('project-bin-path')\n\nprojectBinPath(__dirname).then(binPath => {\n    console.log(binPath);\n    // `/Users/ajaynarainmathur/test-project/node_modules/.bin`\n});\n```\n\n### Api\n\n`projectBinPath([cwd])`\n\n⮑ Returns a promise of path to `.bin` folder of the project or `null` if project is not found\n\n`projectBinPath.sync([cwd])`\n\n⮑ Returns the path to `.bin` of the project or `null`.\n\n#### cwd\n\n⮑ Directory to start from.\n\nType: `string`<br />\nDefault: `process.cwd()`\n\n### Use Cases\n\n1. When you need to get path to excutables in package ( ***not the project but of your local package*** ) just do `projectBinPath(__dirname)` => `[...]/project/node_modules/your_package/node_modules/.bin`\n\n2. When you need to get path to excutables in project ( **project using you package*** ) just do `projectBinPath()` => `[...]/project/node_modules/.bin`\n\n### License\n\nMIT ???? [Ajay Narain Mathur](https://github.com/ajaymathur)\n","_attachments":{},"homepage":"https://github.com/ajaymathur/project-bin-path#readme","bugs":{"url":"https://github.com/ajaymathur/project-bin-path/issues"},"license":"MIT"}