{"_id":"get-pkg","_rev":"85677","name":"get-pkg","description":"Get the package.json for a project from npm.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:27:46.000Z","created":"2015-11-22T14:11:38.166Z","1.1.0":"2018-12-08T18:12:25.066Z","1.0.1":"2018-05-30T14:42:08.333Z","1.0.0":"2018-05-28T19:03:46.426Z","0.3.0":"2016-04-11T09:42:27.918Z","0.2.1":"2016-03-02T10:16:15.762Z","0.2.0":"2015-12-11T02:52:47.346Z","0.1.0":"2015-11-22T14:11:38.166Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"versions":{"1.1.0":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"1.1.0","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"dependencies":{"axios":"^0.18.0"},"devDependencies":{"gulp-format-md":"^2.0.0","mocha":"^5.2.0"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["get-pkgs","github-base"]},"reflinks":["get-pkgs"],"lint":{"reflinks":true}},"gitHead":"f0a9b6f03b44e3c222442138121f9c25161b5b3c","_id":"get-pkg@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.4.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"f16ba46de95c9a6296c1774e78031b4eadb795c1","size":3140,"noattachment":false,"key":"/get-pkg/-/get-pkg-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-1.1.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-pkg_1.1.0_1544292744897_0.23296604520969133"},"_hasShrinkwrap":false,"publish_time":1544292745066,"_cnpm_publish_time":1544292745066},"1.0.1":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{"axios":"^0.18.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^5.2.0"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["get-pkgs","github-base"]},"reflinks":["get-pkgs"],"lint":{"reflinks":true}},"gitHead":"59225b2ec31cbafa0df770a0dd1ad456578a4e77","_id":"get-pkg@1.0.1","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"d6372052668501c34f2e96b384eac0c6047f05d3","size":3130,"noattachment":false,"key":"/get-pkg/-/get-pkg-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-1.0.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-pkg_1.0.1_1527691328168_0.5494056857058776"},"_hasShrinkwrap":false,"publish_time":1527691328333,"_cnpm_publish_time":1527691328333},"1.0.0":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","scripts":{"test":"mocha"},"dependencies":{"axios":"^0.18.0"},"devDependencies":{"gulp-format-md":"^1.0.0","mocha":"^5.2.0"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["get-pkgs","github-base"]},"reflinks":["get-pkgs"],"lint":{"reflinks":true}},"gitHead":"632a7f795965b6f2ec0dba6cb674e078abe65e8f","_id":"get-pkg@1.0.0","_npmVersion":"6.0.1","_nodeVersion":"10.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"5427b50546e27eb1b11cb708975dada8259479d7","size":2931,"noattachment":false,"key":"/get-pkg/-/get-pkg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/get-pkg_1.0.0_1527534226325_0.9511082868080123"},"_hasShrinkwrap":false,"publish_time":1527534226426,"_cnpm_publish_time":1527534226426},"0.3.0":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"min-request":"^1.4.1"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["get-pkgs","github-base"]},"reflinks":["get-pkgs","verb"],"lint":{"reflinks":true}},"gitHead":"f80594c2142a6ee36c498db1add009ced72d5ae1","_id":"get-pkg@0.3.0","_shasum":"79d9d89211eaa4e2e54000ad25ef9eb3635f16e7","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"79d9d89211eaa4e2e54000ad25ef9eb3635f16e7","size":2530,"noattachment":false,"key":"/get-pkg/-/get-pkg-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/get-pkg-0.3.0.tgz_1460367745612_0.4169041265267879"},"directories":{},"publish_time":1460367747918,"_cnpm_publish_time":1460367747918,"_hasShrinkwrap":false},"0.2.1":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"min-request":"^1.4.1"},"devDependencies":{"mocha":"*"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"related":{"list":["get-pkgs","github-base"]},"reflinks":["get-pkgs"]},"gitHead":"ec1c5110b26981a19ba12d1fdf18af315faed8e9","_id":"get-pkg@0.2.1","_shasum":"efc33a49713940aa9ccafd8fc323e0ad520064c5","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"efc33a49713940aa9ccafd8fc323e0ad520064c5","size":2251,"noattachment":false,"key":"/get-pkg/-/get-pkg-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/get-pkg-0.2.1.tgz_1456913772256_0.25387170328758657"},"directories":{},"publish_time":1456913775762,"_cnpm_publish_time":1456913775762,"_hasShrinkwrap":false},"0.2.0":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"lazy-cache":"^0.2.4","min-request":"^1.4.1"},"devDependencies":{"mocha":"*"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"related":{"list":["get-pkgs","github-base"]}},"gitHead":"d6479dc033f8b2cf5913933950a17e9e7d10d6b0","_id":"get-pkg@0.2.0","_shasum":"461eb186a152ec8ea4d808867dbaa5ea40ed2390","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"461eb186a152ec8ea4d808867dbaa5ea40ed2390","size":2157,"noattachment":false,"key":"/get-pkg/-/get-pkg-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-0.2.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1449802367346,"_cnpm_publish_time":1449802367346,"_hasShrinkwrap":false},"0.1.0":{"name":"get-pkg","description":"Get the package.json for a project from npm.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/get-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"lazy-cache":"^0.2.4","min-request":"^1.4.1"},"devDependencies":{"mocha":"*"},"keywords":["get","json","module","npm","object","package","package.json","pkg","pkgs"],"verb":{"related":{"list":["get-pkgs","github-base"]}},"_id":"get-pkg@0.1.0","_shasum":"f078712420b559ecd880092123a9a39c2e66c48d","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"f078712420b559ecd880092123a9a39c2e66c48d","size":2145,"noattachment":false,"key":"/get-pkg/-/get-pkg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/get-pkg/download/get-pkg-0.1.0.tgz"},"directories":{},"publish_time":1448201498166,"_cnpm_publish_time":1448201498166,"_hasShrinkwrap":false}},"readme":"# get-pkg [![NPM version](https://img.shields.io/npm/v/get-pkg.svg?style=flat)](https://www.npmjs.com/package/get-pkg) [![NPM monthly downloads](https://img.shields.io/npm/dm/get-pkg.svg?style=flat)](https://npmjs.org/package/get-pkg) [![NPM total downloads](https://img.shields.io/npm/dt/get-pkg.svg?style=flat)](https://npmjs.org/package/get-pkg) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/get-pkg.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/get-pkg)\n\n> Get the package.json for a project from npm.\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 get-pkg\n```\n\nAlso see [get-pkgs](https://github.com/jonschlinkert/get-pkgs), if you need to get more than one `package.json`.\n\n## Usage\n\n```js\nconst getPkg = require('get-pkg');\n\n// takes a callback\ngetPkg('generate', function(err, pkg) {\n  console.log(pkg);\n});\n\n// or returns a promise\ngetPkg('generate')\n  .then(pkg => console.log(pkg))\n  .catch(console.error);\n```\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* [get-pkgs](https://www.npmjs.com/package/get-pkgs): Get the package.json for an array of repos from the npm registry, optionally filtering properties… [more](https://github.com/jonschlinkert/get-pkgs) | [homepage](https://github.com/jonschlinkert/get-pkgs \"Get the package.json for an array of repos from the npm registry, optionally filtering properties using glob patterns.\")\n* [github-base](https://www.npmjs.com/package/github-base): Low-level methods for working with the GitHub API in node.js/JavaScript. | [homepage](https://github.com/jonschlinkert/github-base \"Low-level methods for working with the GitHub API in node.js/JavaScript.\")\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 16 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 3  | [stefanwalther](https://github.com/stefanwalther) |  \n| 2  | [doowb](https://github.com/doowb) |  \n| 1  | [joakimbeng](https://github.com/joakimbeng) |  \n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/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.8.0, on December 08, 2018._","_attachments":{},"homepage":"https://github.com/jonschlinkert/get-pkg","bugs":{"url":"https://github.com/jonschlinkert/get-pkg/issues"},"license":"MIT"}