{"_id":"base-pkg","_rev":"72561","name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:23:47.000Z","created":"2016-02-04T09:41:06.884Z","1.0.0":"2017-12-21T08:51:10.349Z","0.2.5":"2017-07-16T10:03:31.711Z","0.2.4":"2016-06-13T11:05:14.463Z","0.2.3":"2016-05-24T16:39:50.057Z","0.2.2":"2016-04-17T06:51:23.026Z","0.2.0":"2016-03-31T02:31:18.076Z","0.1.3":"2016-03-17T12:40:43.693Z","0.1.2":"2016-03-17T09:59:24.551Z","0.1.1":"2016-02-20T13:32:49.581Z","0.1.0":"2016-02-04T09:41:06.884Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"versions":{"1.0.0":{"name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","version":"1.0.0","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=6"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^3.1.0","expand-pkg":"^0.1.8","is-valid-app":"^0.3.0","pkg-store":"^1.0.1"},"devDependencies":{"base-cwd":"^0.3.4","base":"^1.0.0","gulp-format-md":"^1.0.0","mocha":"^3.5.3"},"keywords":["api","app","application","base","base-plugin","baseplugin","building-blocks","create","framework","pkg","plugin","plugins","tool","toolkit","tools"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","cache-base","pkg-store"]},"lint":{"reflinks":true},"reflinks":["cache-base","expand-pkg","pkg-store"]},"gitHead":"3db8bc9f61363a052224d19ef06039dbb98e0280","_id":"base-pkg@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"shasum":"ac6ef24161026494b107ce45b04d60992323c700","size":3391,"noattachment":false,"key":"/base-pkg/-/base-pkg-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-1.0.0.tgz"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base-pkg-1.0.0.tgz_1513846269559_0.0240640954580158"},"directories":{},"publish_time":1513846270349,"_hasShrinkwrap":false,"_cnpm_publish_time":1513846270349},"0.2.5":{"name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","version":"0.2.5","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cache-base":"^1.0.0","debug":"^2.6.8","define-property":"^1.0.0","expand-pkg":"^0.1.8","extend-shallow":"^2.0.1","is-valid-app":"^0.3.0","log-utils":"^0.2.1","pkg-store":"^0.2.2"},"devDependencies":{"base":"^0.13.0","base-cwd":"^0.3.4","gulp-format-md":"^1.0.0","mocha":"^3.4.2"},"keywords":["api","app","application","base","base-plugin","baseplugin","building-blocks","create","framework","pkg","plugin","plugins","tool","toolkit","tools"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","cache-base","pkg-store"]},"reflinks":["cache-base","data-store","expand-pkg","pkg-store","verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"ad1f184977729cf9f1e8e8500af6490f3fa2fa6c","_id":"base-pkg@0.2.5","_npmVersion":"5.3.0","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"7ec2e13fa7cf2ab82acd99a4116852c488a2ca68","size":3921,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.2.5.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base-pkg-0.2.5.tgz_1500199410425_0.4036974760238081"},"directories":{},"publish_time":1500199411711,"_hasShrinkwrap":false,"_cnpm_publish_time":1500199411711},"0.2.4":{"name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","version":"0.2.4","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"cache-base":"^0.8.4","define-property":"^0.2.5","expand-pkg":"^0.1.4","extend-shallow":"^2.0.1","is-valid-app":"^0.1.1","lazy-cache":"^2.0.1","log-utils":"^0.1.4","pkg-store":"^0.2.2"},"devDependencies":{"base":"^0.11.0","base-cwd":"^0.2.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["app","base","baseplugin","pkg","plugin"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","cache-base","pkg-store"]},"reflinks":["data-store","pkg-store","verb","cache-base","expand-pkg","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"29337f67d1124ca51a5e9e957326c4adf925d7c0","_id":"base-pkg@0.2.4","_shasum":"1def4e0f056dd6c8d11e4022dad845b30288a1d5","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"1def4e0f056dd6c8d11e4022dad845b30288a1d5","size":2169,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.2.4.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-pkg-0.2.4.tgz_1465815911909_0.5884510243777186"},"directories":{},"publish_time":1465815914463,"_cnpm_publish_time":1465815914463,"_hasShrinkwrap":false},"0.2.3":{"name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","version":"0.2.3","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","extend-shallow":"^2.0.1","is-registered":"^0.1.4","is-valid-instance":"^0.1.0","log-utils":"^0.1.4","pkg-store":"^0.2.2"},"devDependencies":{"base":"^0.8.1","base-cwd":"^0.2.0","gulp-format-md":"^0.1.9","mocha":"^2.5.2"},"keywords":["base","baseplugin","app"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","cache-base","pkg-store"]},"reflinks":["verb","data-store","pkg-store"],"lint":{"reflinks":true}},"gitHead":"1ffc21e95b7bd32a713797956a673698e15ed47e","_id":"base-pkg@0.2.3","_shasum":"688a18b385b398eec94d4ab96800e28f7490fb28","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"688a18b385b398eec94d4ab96800e28f7490fb28","size":3457,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.2.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-pkg-0.2.3.tgz_1464107987824_0.6335295175667852"},"directories":{},"publish_time":1464107990057,"_cnpm_publish_time":1464107990057,"_hasShrinkwrap":false},"0.2.2":{"name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","version":"0.2.2","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","log-utils":"^0.1.0","pkg-store":"^0.2.0"},"devDependencies":{"base":"^0.8.1","base-cwd":"^0.1.6","gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["base","baseplugin","app"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","cache-base","pkg-store"]},"reflinks":["verb","data-store","pkg-store"],"lint":{"reflinks":true}},"gitHead":"1ffc21e95b7bd32a713797956a673698e15ed47e","_id":"base-pkg@0.2.2","_shasum":"26c544004c5d64c73dbdcb3ff19535d501cb5891","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"26c544004c5d64c73dbdcb3ff19535d501cb5891","size":3391,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.2.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-pkg-0.2.2.tgz_1460875880669_0.5578761179931462"},"directories":{},"publish_time":1460875883026,"_cnpm_publish_time":1460875883026,"_hasShrinkwrap":false},"0.2.0":{"name":"base-pkg","description":"Plugin for adding a `pkg` method that exposes pkg-store to your base application.","version":"0.2.0","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","pkg-store":"^0.2.0"},"devDependencies":{"base":"^0.8.1","base-cwd":"^0.1.6","gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["base","baseplugin","app"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","cache-base","pkg-store"]},"reflinks":["verb","data-store","pkg-store"],"lint":{"reflinks":true}},"gitHead":"a4bd1b6a9735b7664930661ce29164bf494c3f48","_id":"base-pkg@0.2.0","_shasum":"453fd4084991046acb1d40fa31f32b093277b536","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"453fd4084991046acb1d40fa31f32b093277b536","size":2663,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.2.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-pkg-0.2.0.tgz_1459391477147_0.027999900514259934"},"directories":{},"publish_time":1459391478076,"_cnpm_publish_time":1459391478076,"_hasShrinkwrap":false},"0.1.3":{"name":"base-pkg","description":"Base plugin for adding a `pkg` object with get/set methods for getting data from package.json or setting data to package.json.","version":"0.1.3","homepage":"https://github.com/node-base/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-pkg.git"},"bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"namify":"^0.1.3","pkg-store":"^0.1.1"},"devDependencies":{"base":"^0.6.4","base-cwd":"^0.1.1","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["base","baseplugin","app"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","base-pipeline","base-plugins","base-tasks"]},"reflinks":["verb","data-store"],"lint":{"reflinks":true}},"gitHead":"41b0e064c6406badf5dd83e41e1873eef82e6613","_id":"base-pkg@0.1.3","_shasum":"91163e96b133cbd55aab856c53decf05eb055e5e","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"91163e96b133cbd55aab856c53decf05eb055e5e","size":2931,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.1.3.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/base-pkg-0.1.3.tgz_1458218441431_0.980529883177951"},"directories":{},"publish_time":1458218443693,"_cnpm_publish_time":1458218443693,"_hasShrinkwrap":false},"0.1.2":{"name":"base-pkg","description":"Base plugin for adding a `pkg` object with get/set methods for getting data from package.json or setting data to package.json.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"namify":"^0.1.3","pkg-store":"^0.1.1"},"devDependencies":{"base":"^0.6.4","base-cwd":"^0.1.1","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["base","baseplugin","app"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","base-pipeline","base-plugins","base-tasks"]},"reflinks":["verb","data-store"],"lint":{"reflinks":true}},"gitHead":"7a43d0845741c912c35a46caa6c2305a5deae5e2","_id":"base-pkg@0.1.2","_shasum":"b2ba28710aad5c7fcef804ccda041e20826da9ad","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b2ba28710aad5c7fcef804ccda041e20826da9ad","size":2879,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.1.2.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/base-pkg-0.1.2.tgz_1458208761929_0.6103511115070432"},"directories":{},"publish_time":1458208764551,"_cnpm_publish_time":1458208764551,"_hasShrinkwrap":false},"0.1.1":{"name":"base-pkg","description":"Base plugin for adding a `pkg` object with get/set methods for getting data from package.json or setting data to package.json.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"namify":"^0.1.3","pkg-store":"^0.1.1"},"devDependencies":{"base":"^0.6.4","base-cwd":"^0.1.1","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["base","baseplugin","app"],"verb":{"run":true,"toc":true,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-options","base-pipeline","base-plugins","base-tasks"]},"reflinks":["verb","data-store"],"lint":{"reflinks":true}},"gitHead":"3c6f7e48befa561727874e910957e4ee21a3f902","_id":"base-pkg@0.1.1","_shasum":"d87b14e04016d5a6e68aa9fa46207a34d70abe9c","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"d87b14e04016d5a6e68aa9fa46207a34d70abe9c","size":2771,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/base-pkg-0.1.1.tgz_1455975164661_0.7711613085120916"},"directories":{},"publish_time":1455975169581,"_cnpm_publish_time":1455975169581,"_hasShrinkwrap":false},"0.1.0":{"name":"base-pkg","description":"Base plugin for adding a `pkg` object with get/set methods for getting data from package.json or setting data to package.json.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/base-pkg","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-pkg.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-pkg/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"namify":"^0.1.3","pkg-store":"^0.1.1"},"devDependencies":{"base":"^0.6.4","base-cwd":"^0.1.1","gulp-format-md":"^0.1.5","mocha":"*"},"keywords":["base","baseplugin","app"],"verb":{"toc":false,"layout":"default","plugins":["gulp-format-md"],"related":{"list":["base","base-options","base-pipeline","base-plugins","base-tasks"]}},"_id":"base-pkg@0.1.0","_shasum":"bf8bc78c731d5edc933139956313f5c6376f7a50","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"bf8bc78c731d5edc933139956313f5c6376f7a50","size":1637,"noattachment":false,"key":"/base-pkg/-/base-pkg-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-pkg/download/base-pkg-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/base-pkg-0.1.0.tgz_1454578865545_0.12346685095690191"},"directories":{},"publish_time":1454578866884,"_cnpm_publish_time":1454578866884,"_hasShrinkwrap":false}},"readme":"# base-pkg [![NPM version](https://img.shields.io/npm/v/base-pkg.svg?style=flat)](https://www.npmjs.com/package/base-pkg) [![NPM monthly downloads](https://img.shields.io/npm/dm/base-pkg.svg?style=flat)](https://npmjs.org/package/base-pkg) [![NPM total downloads](https://img.shields.io/npm/dt/base-pkg.svg?style=flat)](https://npmjs.org/package/base-pkg) [![Linux Build Status](https://img.shields.io/travis/node-base/base-pkg.svg?style=flat&label=Travis)](https://travis-ci.org/node-base/base-pkg)\n\n> Plugin for adding a `pkg` method that exposes pkg-store to your base application.\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 base-pkg\n```\n\n## Usage\n\n```js\nvar pkg = require('base-pkg');\nvar Base = require('base');\nvar app = new Base();\n\napp.use(pkg());\n\nconsole.log(app.pkg.data);\n//=> {\"name\": \"my-project\", ...}\n```\n\n## API\n\nVisit [pkg-store](https://github.com/jonschlinkert/pkg-store) for additional API details and documentation.\n\n### .pkg.set\n\n```js\napp.pkg.set(key, value);\n```\n\nSet property `key` with the given `value`.\n\n**Example**\n\n```js\n// given {\"name\": \"my-project\"}\napp.pkg.set('bin.foo', 'bar');\n\nconsole.log(app.pkg.data);\n//=> {\"name\": \"my-project\", \"bin\": {\"foo\": \"bar\"}}\n```\n\n### .pkg.save\n\nPersist package.json to the file system at `app.pkg.path`.\n\n```js\napp.pkg.save();\n```\n\n### .pkg.get\n\n```js\napp.pkg.get(key);\n```\n\nGet property `key` from package.json.\n\n**Example**\n\n```js\n// given {\"name\": \"my-project\"}\napp.pkg.set('bin.foo', 'bar');\n\nconsole.log(app.pkg.get('bin'));\n//=> {\"foo\": \"bar\"}\n```\n\n### .pkg.has\n\n```js\napp.pkg.has(key);\n```\n\nReturns `true` if `package.json` has property `key`.\n\n**Example**\n\n```js\n// given: {\"name\": \"my-project\"}\nconsole.log(app.pkg.has('name'));\n//=> true\nconsole.log(app.pkg.has('zzzzzzz'));\n//=> false\n```\n\n### .pkg.union\n\n```js\napp.pkg.union(key, val);\n```\n\nCreate array `key`, or concatenate values to array `key`. Also uniquifies the array.\n\n**Example**\n\n```js\napp.pkg.union('keywords', 'foo');\napp.pkg.union('keywords', ['bar', 'baz']);\n\nconsole.log(app.pkg.get('keywords'));\n//=> ['foo', 'bar', 'baz']\n```\n\n## .pkg.expand\n\nCreates a get/set API using [cache-base](https://github.com/jonschlinkert/cache-base), where the cache is populated with a shallow clone of `package.json` with values expanded by [expand-pkg](https://github.com/jonschlinkert/expand-pkg).\n\n**Example**\n\n```js\nconsole.log(app.pkg.get('author'));\n//=> 'Jon Schlinkert (https://github.com/jonschlinkert)'\n\nvar expanded = app.pkg.expand();\nvar author = expanded.get('author');\n//=> {name: 'Jon Schlinkert', url: 'https://github.com/jonschlinkert'}\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<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* [base-options](https://www.npmjs.com/package/base-options): Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme… [more](https://github.com/jonschlinkert/base-options) | [homepage](https://github.com/jonschlinkert/base-options \"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.\")\n* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base \"Framework for rapidly creating high quality, server-side node.js applications, using plugins like building blocks\")\n* [cache-base](https://www.npmjs.com/package/cache-base): Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects. | [homepage](https://github.com/jonschlinkert/cache-base \"Basic object cache with `get`, `set`, `del`, and `has` methods for node.js/javascript projects.\")\n* [pkg-store](https://www.npmjs.com/package/pkg-store): Use package.json as a config store. | [homepage](https://github.com/jonschlinkert/pkg-store \"Use package.json as a config store.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [linkedin/in/jonschlinkert](https://linkedin.com/in/jonschlinkert)\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [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 December 21, 2017._","_attachments":{},"homepage":"https://github.com/node-base/base-pkg","bugs":{"url":"https://github.com/node-base/base-pkg/issues"},"license":"MIT"}