{"name":"find-package-json","version":"1.0.0","description":"Find package.json files in parent directories, keep finding until you find the right one using iterators.","main":"index.js","scripts":{"100%":"istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100","test":"mocha test.js","watch":"mocha --watch test.js","coverage":"istanbul cover ./node_modules/.bin/_mocha -- test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- test.js"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/find-package-json.git"},"keywords":["package","package.json","json","find-package-json","directory","parent","package-json","read-package-json"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/find-package-json/issues"},"homepage":"https://github.com/3rd-Eden/find-package-json#readme","devDependencies":{"assume":"1.2.x","istanbul":"0.3.x","mocha":"2.2.x","pre-commit":"1.1.x"},"gitHead":"f4a03f240353cbaaf12eb630054dfab6b67b2838","_id":"find-package-json@1.0.0","_shasum":"ed6efb0bcc905e839173e53d47920711e38b9561","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"ed6efb0bcc905e839173e53d47920711e38b9561","tarball":"http://registry-npm.ywwl.com/find-package-json/download/find-package-json-1.0.0.tgz","integrity":"sha512-rRz5T1UgJZuMyqwOU8Yp4f1sYHbXMuU5O9syx3PGL812TrgKTB4pSNtWGpD7W6cKFBs7ngmZSCkVPyGvXwiaqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoZrmlrXsH06wN2D58Q87awEBvqdrM2FdCF+s1mdsZ6gIhAMjz/ji7i+yqDKYp99/RFKAVbUbFFuVYmNV/lQHb0Qkz"}],"size":2438,"noattachment":false,"key":"/find-package-json/-/find-package-json-1.0.0.tgz"},"directories":{},"readme":"# find-package-json\n\nEasily find package.json files that you're searching for. It spiders parent\ndirectories for `package.json` files and correctly reads the results. It follows\nan ES6 iterator design so it should be easy to implement. \n\n## Installation\n\nThe module is released in the public npm registry and can be installed by\nrunning:\n\n```\nnpm install --save find-package-json\n```\n\n## Usage\n\nWe expose a single function as module interface. So in all examples we assume\nthat you've already required the code as illustrated in the example below:\n\n```js\n'use strict';\n\nvar finder = require('find-package-json');\n```\n\nThe function accepts 1 optional argument which is the directory it should start\nsearching in or a module object with a `filename` key. If nothing is provided\nit will default to `process.cwd()` as entry point.\n\nAs we're build upon the iterator interface you can simply call the `.next()`\nfunction of the returned result to find the first package.json. If you don't\nlike the result, call `.next()` again to find the next file. Please do note that\nthese methods do synchronous API calls in Node.js so they are blocking.\n\n```js\nvar f = finder(__dirname);\n\nconsole.log(f.next().value); // the package.json object\nconsole.log(f.next().filename); // the path to the package.json file\n```\n\nYou can also search for the global `module` object:\n\n```js\nvar f = finder(module);\n\nconsole.log(f.next().value); // the package.json object\nconsole.log(f.next().filename); // the path to the package.json file\n```\n\nIf there is no more package.json's to be found, the method will set the returned\n`done` key as `true`;\n\n```js\nvar f = finder(__dirname);\n\nf.next().done // false\nf.next().done // true\n```\n\n## License\n\nMIT\n","publish_time":1440165847724,"_cnpm_publish_time":1440165847724,"dist-tags":{"latest":"1.2.0"}}