{"_id":"project-bin-path","_rev":"10-1377723a697e065cb4fb6d7169d87e0c","name":"project-bin-path","description":"This will give path to the project's local bin","dist-tags":{"latest":"2.0.0"},"versions":{"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":{"integrity":"sha512-jJ5SRtizILKE4Ps2eAE3zbVwtPfdxYyCCKrgH7gS9mCiehrv62J9bXBWtRcuN7qNtJxAMrwCxt/uLRpl1m9f8w==","shasum":"096e4c1295a1862eb72797e4c091084393b5e137","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-0.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICDEvp1d0nvdVzsZclGapgKJPPfFZ24R5gFGmhvAc544AiEAlB1Evz1VCaGYWXv2Q1CAwbNzXVLlXWMxRLnigkhybG4="}]},"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"}},"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":{"integrity":"sha512-Z2w7gok2nEvE55mun3/Ce69a7l+Y3GWiEo4IDZ3Ib4TZg8GaK/7ukP5An6SpffGwo+eeTLF74kq6piJBTMQe5A==","shasum":"d53c35c8e156401d13eeeb857b21ac67bd6c366a","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9OK2AdX1RtGJib51Cn3/Uc/Ci8Ndo4HCqBGKncPm2jgIgXS1hsucNvCcxe0FgY8+yKl36MloV7n1FDOJzic8i80A="}]},"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"}},"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":{"integrity":"sha512-ZVK5wQLFgSjEihz/yjjd8HIRefkGjBTtL4u+z6gy2wRHJwiDhy+cx7yajarmPkctnZsjMdHNIpPHJQQbpzgaOA==","shasum":"5e5dea790015842128935e905ca207fc6af27f2f","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy9XYnuozQgKhJBiCIY2IgoSL1o9FqVNbCdhBqFhTskQIhAK/prmUSPOa8OPgU1j2qB6L8vCnIWJzFt3OdN0hBzc2R"}]},"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"}},"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":{"integrity":"sha512-MyhRH/R6gJQGKi4Q40qAdjV1XxU1e4Hkcfye2u+ksiu0tWe0gzKgvOPKvV9eVAMW5fnyNgTpOyiyRWwxoeYORg==","shasum":"c709c027adfcce1a9211c34baae5ec8c3cce5e6b","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAOab9iPUYNHw9TGNac7ny6DZ7moxwhonZlVgHLMsbRAiBL9z1FtJqWinbaYo+Y+u7jxzCBfhzRf4ojFFUEs8r8kQ=="}]},"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"}},"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":{"integrity":"sha512-nkwHm8gb2uG6D9vJo5hsEzsT3ZkwbHrJCF8BOS2mXep8qv43MsxTX3sKTpNWU/WDfLYmCb/+V4UI/DEPBMwQ0g==","shasum":"ba03efed527e2b9d5aed8fc847db74940621a08c","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZijZXgBlvfhA2rrIHp1dK3NM39ZU8eVGCw5UnnhSnOwIgWGCcfE9UewrZq4oS0V+g+luQjZkP5uLR+z1C8vQOQzE="}]},"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"}},"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":{"integrity":"sha512-z9j1V5Gc//3NEVFIbrbYKTwRf3UuUtHmOqezX4f3TfyafI/Ord5HscWcRzf/nqRGruvOMQ/G54oGXRQpCaeLow==","shasum":"8a4d1f4c301b4e46df99e1d8f86f6ed3cc9fc8e3","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC/MDy2tY5nQlNbA5ymdtM/+P9e3kiZYkQtQ60QQScgQIgfGFpCodxBr+oFgoat4XCGhDd2L8gB4VibFRLZ++3rFk="}]},"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"}},"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":{"integrity":"sha512-CyOo4GX4UXAvBxPLkLu/rzfmJ/Z68Ox/+uRxmem/XIsBmgh51uWn7398qPKhOndXyEVYpFcuqtaC4B+4fESGaA==","shasum":"9d17ca3c76f0087461e2fbfa2a55859cfd794733","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSVtXIbJWBsTH3rI/9FoIaWKytLnJSkRwiSgGFMd92iAiB9zCegqSHJ/pwtxomRuP5WUjunS3jxNNEcFAST5A/hvA=="}]},"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"}},"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":{"integrity":"sha512-PL6otyI6ZUnraSi801zwPYRfo+FkPKTvjj5iD9LIVDPo9GLW508K54uUvcS06aLMWyvRdEU6VURT2JhGEfU8/A==","shasum":"7a8b3817f54c41a14cd5a6e904ca5400c34fc17b","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB0vmsd8CYD2IKNBKed7v31yztFG6jIpaLh987phLvYBAiEAvoD7kzXRs+AuUzAGaKBuo71hHA+DN1EtMivvDlCdUvA="}]},"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"}},"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":{"integrity":"sha512-t6K06d7W4/0oX8xFKaZKJbgwLoe8d4rNdPNtIBbisJuVk9rGHXAC4XPzlb4BRN0PZgUOCBXOU6dIMPFQvr/iWQ==","shasum":"c7e169cb68c864fc6d67608042423fe0a1f9f502","tarball":"https://registry.npmjs.org/project-bin-path/-/project-bin-path-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0KWBv4d80yBzXWBgEb64V4wMMIuf8j1sZBFmiicG2mQIhAMdaCD5hJ4PgKUMvgAjB+1thZgR8+FdoTjTJSHQRLdo+"}]},"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"}}},"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","maintainers":[{"name":"ajaynarainmathur","email":"ajaynarainmathur@gmail.com"}],"time":{"modified":"2022-05-13T11:46:04.678Z","created":"2017-11-25T21:34:56.434Z","0.0.0":"2017-11-25T21:34:56.434Z","0.0.1":"2017-11-25T23:15:11.013Z","0.0.2":"2017-11-26T00:27:00.768Z","0.0.3":"2017-11-26T04:46:06.550Z","0.0.4":"2017-11-26T10:52:23.633Z","1.0.0":"2017-11-27T10:30:02.972Z","1.1.0":"2017-11-27T11:39:17.776Z","1.1.1":"2017-12-11T11:49:14.278Z","2.0.0":"2018-01-15T05:56:38.326Z"},"author":{"name":"Ajay Narain Mathur","email":"ajaynarainmathur@gmail.com"},"license":"MIT","readmeFilename":"readme.md","users":{"ajaynarainmathur":true},"homepage":"https://github.com/ajaymathur/project-bin-path#readme","keywords":["path","bin","node_modules","package","script"],"repository":{"type":"git","url":"git+https://github.com/ajaymathur/project-bin-path.git"},"bugs":{"url":"https://github.com/ajaymathur/project-bin-path/issues"}}