{"_id":"find-package-json","_rev":"3343033","name":"find-package-json","description":"Find package.json files in parent directories, keep finding until you find the right one using iterators.","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"time":{"modified":"2024-07-10T08:42:41.000Z","created":"2015-08-21T14:04:07.724Z","1.2.0":"2019-02-19T22:18:15.628Z","1.1.0":"2018-04-17T13:41:38.122Z","1.0.0":"2015-08-21T14:04:07.724Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/find-package-json.git"},"versions":{"1.2.0":{"name":"find-package-json","version":"1.2.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":"2.0.x","istanbul":"0.4.x","mocha":"5.1.x","pre-commit":"1.2.x"},"gitHead":"d33007fb1b4d03dde3b39b521f48fe4bc0063754","_id":"find-package-json@1.2.0","_npmVersion":"6.4.0","_nodeVersion":"8.11.4","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"dist":{"shasum":"4057d1b943f82d8445fe52dc9cf456f6b8b58083","size":2707,"noattachment":false,"key":"/find-package-json/-/find-package-json-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-package-json/download/find-package-json-1.2.0.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-package-json_1.2.0_1550614695519_0.314046742451193"},"_hasShrinkwrap":false,"publish_time":1550614695628,"_cnpm_publish_time":1550614695628,"_cnpmcore_publish_time":"2021-12-15T17:21:59.139Z"},"1.1.0":{"name":"find-package-json","version":"1.1.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":"2.0.x","istanbul":"0.4.x","mocha":"5.1.x","pre-commit":"1.2.x"},"gitHead":"74e5abb9b099074213846c5f5f4b0e4889c1eaa5","_id":"find-package-json@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"dist":{"shasum":"269b0c148bbe389f027e2c1e0c72fa108eadb348","size":2497,"noattachment":false,"key":"/find-package-json/-/find-package-json-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-package-json/download/find-package-json-1.1.0.tgz"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/find-package-json_1.1.0_1523972498015_0.5758288875290101"},"_hasShrinkwrap":false,"publish_time":1523972498122,"_cnpm_publish_time":1523972498122,"_cnpmcore_publish_time":"2021-12-15T17:21:59.336Z"},"1.0.0":{"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","size":2438,"noattachment":false,"key":"/find-package-json/-/find-package-json-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/find-package-json/download/find-package-json-1.0.0.tgz"},"directories":{},"publish_time":1440165847724,"_hasShrinkwrap":false,"_cnpm_publish_time":1440165847724,"_cnpmcore_publish_time":"2021-12-15T17:21:59.580Z"}},"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","_attachments":{},"homepage":"https://github.com/3rd-Eden/find-package-json#readme","bugs":{"url":"https://github.com/3rd-Eden/find-package-json/issues"},"license":"MIT"}