{"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":{"integrity":"sha512-t6K06d7W4/0oX8xFKaZKJbgwLoe8d4rNdPNtIBbisJuVk9rGHXAC4XPzlb4BRN0PZgUOCBXOU6dIMPFQvr/iWQ==","shasum":"c7e169cb68c864fc6d67608042423fe0a1f9f502","tarball":"http://registry-npm.ywwl.com/project-bin-path/download/project-bin-path-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0KWBv4d80yBzXWBgEb64V4wMMIuf8j1sZBFmiicG2mQIhAMdaCD5hJ4PgKUMvgAjB+1thZgR8+FdoTjTJSHQRLdo+"}],"size":37367,"noattachment":false,"key":"/project-bin-path/-/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":{},"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","publish_time":1515995798326,"_cnpm_publish_time":1515995798326,"dist-tags":{"latest":"2.0.0"}}