{"_id":"find-package-json","_rev":"7-651b3f2fe85fcd55f4d1fe79aa8778a9","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"},"versions":{"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","tarball":"https://registry.npmjs.org/find-package-json/-/find-package-json-1.0.0.tgz","integrity":"sha512-rRz5T1UgJZuMyqwOU8Yp4f1sYHbXMuU5O9syx3PGL812TrgKTB4pSNtWGpD7W6cKFBs7ngmZSCkVPyGvXwiaqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoZrmlrXsH06wN2D58Q87awEBvqdrM2FdCF+s1mdsZ6gIhAMjz/ji7i+yqDKYp99/RFKAVbUbFFuVYmNV/lQHb0Qkz"}]},"directories":{}},"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":{"integrity":"sha512-ldihxiIFpewACALK0tUByf3GmOaTBjI5OcvwJ3mExgERUZBsSOBV8QM6vVb0/ZqylpzY6Od6SsP8bjFv7fKiTw==","shasum":"269b0c148bbe389f027e2c1e0c72fa108eadb348","tarball":"https://registry.npmjs.org/find-package-json/-/find-package-json-1.1.0.tgz","fileCount":4,"unpackedSize":6508,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa1fmSCRA9TVsSAnZWagAAasMP+war0oMEX6RT3l/SFBQ2\nfgmREJ/A2qn2UYg1XsQJZrMwt9p9fr77qsDw73+KZpS+qJgQh4OgE8sHxKsv\noUyq46g9u9THy41i0SLJlIEgqXor5O41Zy3ZBIZqD4psUQUPVRUY8EQ+LGRj\ntYg3kPC/dZsu8M1ISgGC7/FdX/UHEMRwMGUrbmh5uQvzEWm3o4d13N3ImXZl\nwERzb1VQzuuRTTYyoMJYvSb6U+40o3OB4j6jtRHjuN3UcyNya8Bzi/iG9ZG6\nd2K0ifRzG+yHty9llxzkf5cFH5ic5/WwEtGjdi7xVq19Vw0CDyvzP21ODwUS\nzty5dVohHm35WndgafjTNvEhwiFRuOU3GQLs1knlySb20NMcIYa34uZ7tdEU\npB+L57Qs2qzHZEVQ+LkqTTxIudkpvxksjve6k1qKn02X3I8gxPWA7CF8l3bt\nrMh8MmTjBO0maNRPuayoovx/7xC/fC66HdTbrd5nZ0t5qS64ckQwROipbhOr\nzRjsWteJfhvWHHo2BhiLTw2X2b9Q/2k5jnBhxBUhpTAst7mgBhvREhdaPNWE\nqpuMqXBMrxlYs4EG37b85x52u2LgWHc1grTY0qpFAckUJYMHPCTM/C1DpdZo\nba6SbHCa2UY68ujxPqgxADu4BShSsLXexcQMkAQ1ogB2CG+2gmieoR+9MeIf\nWcDe\r\n=USOR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAnZeT1wlg/GEuGtsdjojfHlMtRfCYMx2KKzogbAXhbwIgMnGk1DJcxQN+pWtbUgSg2WrT7pEanKqXcH4/CIxaslc="}]},"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},"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":{"integrity":"sha512-+SOGcLGYDJHtyqHd87ysBhmaeQ95oWspDKnMXBrnQ9Eq4OkLNqejgoaD8xVWu6GPa0B6roa6KinCMEMcVeqONw==","shasum":"4057d1b943f82d8445fe52dc9cf456f6b8b58083","tarball":"https://registry.npmjs.org/find-package-json/-/find-package-json-1.2.0.tgz","fileCount":4,"unpackedSize":7712,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbICoCRA9TVsSAnZWagAAOg8P/098AS7M71Vj6Lzhq9cx\nJ1SbVnHPNDoUbp0veA35LCs7gVSpYF+1Ni8WUDTpruurGI64eBnlW9BRaATm\n89LJCRzLo7n0ikNSe60YOh/JexVkeAGd1+HscnoDMCpQ29vRb7zcZMUfan2C\nS3iYJ6aFCA4Ngc/dsNvIlpJgrkKHVEEnGi6+a195FO4v47YS56IpAxg6GYuf\n3HVoT2dmYkO987CbSOsCxIcA0T5kOOFaNVdY9396KpfHRDd9C/JQPDSEp1ev\nJY+VUWAyN9d10A2LQAnOq6o0uubEhH/nSZakcECxvA7yMyBQ1eOKxzmczJDT\n7la871YjMwCWJK/CV/iVg2a178IDw7pWv4zDe5nbah9TjhD0j5/CFp1fAE0e\nQilD2n10X+JEOTKN4KysYG0FIoC1rKsQ2YBmKEfDmWaFEUA5y3OHxwFYem9A\nznw+qbpWACwBQjXr9UyPUz7AQ9AUZFku8h9wk21Mn/VnBQdc9gwltdMVxNxA\ndZxFzNUKYlgJjzsMnf9mdCi8AdHAh1CPVEa53AHa0gxViPleBN5X9wALNoQy\nx8w2n5IoBxRpB1NtjicsPaW5JVMU4lz1ywJ9hkfY71uSXFlp9Tf8+cjBDZNk\nf1BCigriyNmoSlzMVdTHvgbheAHhVbOTlym8JidCPXU8WKeEfMA6hyxsUdGJ\nbTvT\r\n=VTIw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCESDEbXtoB+ar8VawPeCCpSBlpt/1zjRKWfddgxb20DQIhAPkwKfpDPbd4bSB6JgFIp71x13Zvej7Z2WOPqTFrTbOD"}]},"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}},"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","maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"time":{"modified":"2023-07-12T19:05:10.410Z","created":"2015-08-21T14:04:07.724Z","1.0.0":"2015-08-21T14:04:07.724Z","1.1.0":"2018-04-17T13:41:38.122Z","1.2.0":"2019-02-19T22:18:15.628Z"},"homepage":"https://github.com/3rd-Eden/find-package-json#readme","keywords":["package","package.json","json","find-package-json","directory","parent","package-json","read-package-json"],"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/find-package-json.git"},"author":{"name":"Arnout Kazemier"},"bugs":{"url":"https://github.com/3rd-Eden/find-package-json/issues"},"license":"MIT","readmeFilename":"README.md","users":{"flumpus-dev":true}}