{"_id":"load-pkg","_rev":"83824","name":"load-pkg","description":"Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:26:40.000Z","created":"2014-05-02T23:11:52.269Z","4.0.0":"2018-06-27T06:13:03.746Z","3.0.1":"2015-12-13T18:01:45.073Z","3.0.0":"2015-11-28T03:33:31.936Z","2.0.1":"2015-10-20T04:32:43.448Z","2.0.0":"2015-10-20T04:29:18.223Z","1.3.0":"2015-07-20T05:05:00.065Z","1.2.0":"2015-04-07T09:01:53.096Z","1.1.3":"2015-03-18T15:35:22.700Z","1.1.2":"2015-03-03T05:14:42.760Z","1.1.1":"2015-03-03T04:43:12.654Z","1.1.0":"2015-03-03T04:38:43.967Z","1.0.0":"2014-12-30T03:18:53.170Z","0.2.0":"2014-12-01T10:15:49.599Z","0.1.0":"2014-05-02T23:11:52.269Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"versions":{"4.0.0":{"name":"load-pkg","description":"Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.","version":"4.0.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=8"},"scripts":{"test":"mocha"},"dependencies":{"find-pkg":"^2.0.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^5.2.0"},"keywords":["config","dir","directory","file","find","find-up","findup","findup-sync","folder","json","load","look","look-up","match","package","package-json","parent","parents","parse","path","pkg","read","resolve","search","up","walk","walking"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["cwd","find-pkg","look-up"]},"lint":{"reflinks":true}},"gitHead":"c331b17ce23324f0abc65b073215f25564a369db","_id":"load-pkg@4.0.0","_npmVersion":"6.1.0","_nodeVersion":"10.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"f80a29aec2f6d02aadde714099fda4eea1b611f1","size":3235,"noattachment":false,"key":"/load-pkg/-/load-pkg-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-4.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/load-pkg_4.0.0_1530079983640_0.6086636434699118"},"_hasShrinkwrap":false,"publish_time":1530079983746,"_cnpm_publish_time":1530079983746},"3.0.1":{"name":"load-pkg","description":"Loads the package.json from the root of the user's current project.","version":"3.0.1","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"find-pkg":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"verb":{"plugins":["gulp-format-md"],"related":{"list":["cwd","find-pkg","look-up"]}},"gitHead":"c84e4c7ce6f1329249d9f328d6e74e4bd2646c78","_id":"load-pkg@3.0.1","_shasum":"9230b37ec04e569003060bc58951e3ed508d594f","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9230b37ec04e569003060bc58951e3ed508d594f","size":2436,"noattachment":false,"key":"/load-pkg/-/load-pkg-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-3.0.1.tgz"},"directories":{},"publish_time":1450029705073,"_cnpm_publish_time":1450029705073,"_hasShrinkwrap":false},"3.0.0":{"name":"load-pkg","description":"Loads the package.json from the root of the user's current project.","version":"3.0.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"find-pkg":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"verb":{"related":{"list":["cwd","find-pkg","look-up"]}},"gitHead":"c84e4c7ce6f1329249d9f328d6e74e4bd2646c78","_id":"load-pkg@3.0.0","_shasum":"c8c66dc573e675b439130e7ef8a02fbf1db10f7c","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c8c66dc573e675b439130e7ef8a02fbf1db10f7c","size":2402,"noattachment":false,"key":"/load-pkg/-/load-pkg-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-3.0.0.tgz"},"directories":{},"publish_time":1448681611936,"_cnpm_publish_time":1448681611936,"_hasShrinkwrap":false},"2.0.1":{"name":"load-pkg","description":"Loads the package.json from the root of the user's current project.","version":"2.0.1","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.8.3"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"verb":{"related":{"list":["list-deps","resolve-dep","look-up","load-plugins"]}},"gitHead":"1bc687a69daead1f4a17eb86fdd28c9b6581106a","_id":"load-pkg@2.0.1","_shasum":"3dd369d77ae453a89479a9f50a875b6f9da03ef5","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3dd369d77ae453a89479a9f50a875b6f9da03ef5","size":2359,"noattachment":false,"key":"/load-pkg/-/load-pkg-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-2.0.1.tgz"},"directories":{},"publish_time":1445315563448,"_cnpm_publish_time":1445315563448,"_hasShrinkwrap":false},"2.0.0":{"name":"load-pkg","description":"Loads the package.json from the root of the user's current project.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.8.3"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"verb":{"related":{"list":["list-deps","resolve-dep","look-up","load-plugins"]}},"gitHead":"a9ed595d6c742effe2b2cb0e5a7f3e3445b91b1b","_id":"load-pkg@2.0.0","_shasum":"725c00da40dd69963255bb0a0534a1c051c3a2a2","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"725c00da40dd69963255bb0a0534a1c051c3a2a2","size":2213,"noattachment":false,"key":"/load-pkg/-/load-pkg-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-2.0.0.tgz"},"directories":{},"publish_time":1445315358223,"_cnpm_publish_time":1445315358223,"_hasShrinkwrap":false},"1.3.0":{"name":"load-pkg","description":"Loads the package.json from the root of the user's current project.","version":"1.3.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.7.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"verb":{"related":{"list":["list-deps","resolve-dep","look-up","load-plugins"]}},"gitHead":"01d7c4519611fa2a30f3614081f7717244048f66","_id":"load-pkg@1.3.0","_shasum":"756dcfb4589b9167134ed9be70c23d28ad52853f","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"756dcfb4589b9167134ed9be70c23d28ad52853f","size":2074,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.3.0.tgz"},"directories":{},"publish_time":1437368700065,"_cnpm_publish_time":1437368700065,"_hasShrinkwrap":false},"1.2.0":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"1.2.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.6.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"gitHead":"c0603fbcc014a499abbbb7667b6799038d77e263","_id":"load-pkg@1.2.0","_shasum":"2877b02c9d921cfd035432b041511b4a6b78a048","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"2877b02c9d921cfd035432b041511b4a6b78a048","size":1946,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.2.0.tgz"},"directories":{},"publish_time":1428397313096,"_cnpm_publish_time":1428397313096,"_hasShrinkwrap":false},"1.1.3":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"1.1.3","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.5.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"gitHead":"a4c24a70604aa1a641d49babe39fccd643ae664b","_id":"load-pkg@1.1.3","_shasum":"6a474383aac51a133fc0dd6d5ee5e7b4c0191a4d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6a474383aac51a133fc0dd6d5ee5e7b4c0191a4d","size":1974,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.1.3.tgz"},"directories":{},"publish_time":1426692922700,"_cnpm_publish_time":1426692922700,"_hasShrinkwrap":false},"1.1.2":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"1.1.2","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.5.0","helper-related":"^0.1.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"gitHead":"e95060663e8f069aae95b0f9a499bc58cb4aa738","_id":"load-pkg@1.1.2","_shasum":"194a852052edb847a2151cf4fa7262f688837764","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"194a852052edb847a2151cf4fa7262f688837764","size":1993,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.1.2.tgz"},"directories":{},"publish_time":1425359682760,"_cnpm_publish_time":1425359682760,"_hasShrinkwrap":false},"1.1.1":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"1.1.1","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.5.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"gitHead":"e95060663e8f069aae95b0f9a499bc58cb4aa738","_id":"load-pkg@1.1.1","_shasum":"ada90101cc17a42a98b3c2ab0d63f41af2ba880d","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ada90101cc17a42a98b3c2ab0d63f41af2ba880d","size":1673,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.1.1.tgz"},"directories":{},"publish_time":1425357792654,"_cnpm_publish_time":1425357792654,"_hasShrinkwrap":false},"1.1.0":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cwd":"^0.5.0"},"devDependencies":{"mocha":"*"},"keywords":["config","json","load","package","package-json","pkg"],"gitHead":"12e622fe1fe1e395a00687a86c16c615d8501c06","_id":"load-pkg@1.1.0","_shasum":"d4cf67c7d52cd1258ee4b73a107c6bc4ea82fea1","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d4cf67c7d52cd1258ee4b73a107c6bc4ea82fea1","size":1658,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.1.0.tgz"},"directories":{},"publish_time":1425357523967,"_cnpm_publish_time":1425357523967,"_hasShrinkwrap":false},"1.0.0":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"dependencies":{"cwd":"^0.4.0"},"keywords":["config","json","load","package","package-json","pkg"],"gitHead":"db041bc58e66e6431c47d7022b339e7987642ce2","_id":"load-pkg@1.0.0","_shasum":"85a55140be9d4cfe6ff6110cb9be9ad4ee29e6aa","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"85a55140be9d4cfe6ff6110cb9be9ad4ee29e6aa","size":2355,"noattachment":false,"key":"/load-pkg/-/load-pkg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-1.0.0.tgz"},"directories":{},"publish_time":1419909533170,"_cnpm_publish_time":1419909533170,"_hasShrinkwrap":false},"0.2.0":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*"},"dependencies":{"cwd":"^0.4.0"},"keywords":["package","load","pkg","config","package.json"],"_id":"load-pkg@0.2.0","_shasum":"3b4280f8d6a01c522a3f65acdf6527f68e9335f6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"3b4280f8d6a01c522a3f65acdf6527f68e9335f6","size":2375,"noattachment":false,"key":"/load-pkg/-/load-pkg-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-0.2.0.tgz"},"directories":{},"publish_time":1417428949599,"_cnpm_publish_time":1417428949599,"_hasShrinkwrap":false},"0.1.0":{"name":"load-pkg","description":"Load the package.json in the base of the user's current project. ","version":"0.1.0","homepage":"https://github.com/jonschlinkert/load-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/load-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/load-pkg/blob/master/LICENSE-MIT"}],"keywords":["package","load","pkg","config","package.json"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"verb":"~0.2.0","mocha":"*"},"dependencies":{"cwd":"~0.3.3"},"_id":"load-pkg@0.1.0","dist":{"shasum":"5910061fc132e4fdfb17b92ab3708543075e9c7b","size":2351,"noattachment":false,"key":"/load-pkg/-/load-pkg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/load-pkg/download/load-pkg-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1399072312269,"_cnpm_publish_time":1399072312269,"_hasShrinkwrap":false}},"readme":"# load-pkg [![NPM version](https://img.shields.io/npm/v/load-pkg.svg?style=flat)](https://www.npmjs.com/package/load-pkg) [![NPM monthly downloads](https://img.shields.io/npm/dm/load-pkg.svg?style=flat)](https://npmjs.org/package/load-pkg) [![NPM total downloads](https://img.shields.io/npm/dt/load-pkg.svg?style=flat)](https://npmjs.org/package/load-pkg) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/load-pkg.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/load-pkg)\n\n> Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save load-pkg\n```\n\n## Usage\n\n### async\n\nBy default, if no callback is passed a promise is returned.\n\nThe following examples assume the code is inside an `async` function:\n\n```js\nconst load = require('load-pkg');\n\n// get the package.json from the cwd\nconst pkg = await load();\n\n// specify the starting directory to search from\nconst pkg = await load('foo/bar');\n```\n\n### async callback\n\n```js\nconst load = require('load-pkg');\n\n// get the package.json from the cwd\nload((err, pkg) => {\n  console.log(pkg); \n});\n\n// specify the starting directory to search from\nload('foo/bar', (err, pkg) => {\n  console.log(pkg); \n});\n```\n\n### sync\n\nLoads the package.json in `process.cwd()` by default:\n\n```js\nconst load = require('load-pkg');\n\n// the following are equivalent\nconst pkg = load.sync(process.cwd());\nconst pkg = load.sync();\n```\n\nSpecify a cwd or filepath to start from:\n\n```js\nconst pkg = require('load-pkg').sync('a/b/c');\n```\n\n## Release history\n\n### v3.0.0\n\n* The main export now returns a promise if no callback is passed. There should not be any breaking changes.\n\n### v2.0.0\n\n**Breaking changes**\n\n* The main export is now a function that must be called.\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [cwd](https://www.npmjs.com/package/cwd): Easily get the CWD (current working directory) of a project based on package.json, optionally starting… [more](https://github.com/jonschlinkert/cwd) | [homepage](https://github.com/jonschlinkert/cwd \"Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)\")\n* [find-pkg](https://www.npmjs.com/package/find-pkg): Find the first directory with a package.json, recursing up, starting with the given directory. Similar… [more](https://github.com/jonschlinkert/find-pkg) | [homepage](https://github.com/jonschlinkert/find-pkg \"Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.\")\n* [look-up](https://www.npmjs.com/package/look-up): Faster drop-in replacement for find-up and findup-sync. | [homepage](https://github.com/jonschlinkert/look-up \"Faster drop-in replacement for find-up and findup-sync.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 27, 2018._","_attachments":{},"homepage":"https://github.com/jonschlinkert/load-pkg","bugs":{"url":"https://github.com/jonschlinkert/load-pkg/issues"},"license":"MIT"}