{"name":"base-config","description":"base-methods plugin that adds a `config` method for mapping declarative configuration values to other 'base' methods or custom functions.","version":"0.3.6","homepage":"https://github.com/jonschlinkert/base-config","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-config.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-config/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"isobject":"^2.0.0","lazy-cache":"^1.0.3","map-config":"^0.4.0","resolve-dir":"^0.1.0"},"devDependencies":{"base":"^0.6.4","base-data":"^0.3.6","base-options":"^0.5.5","base-plugins":"^0.4.1","base-store":"^0.3.3","expand-args":"^0.3.1","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-format-md":"^0.1.5","gulp-istanbul":"^0.10.3","gulp-mocha":"^2.2.0","minimist":"^1.2.0","mocha":"*"},"keywords":["app","base","baseplugin","cache","command","command-line","config","data","extend","line","merge","method","methods","plugin","store"],"verb":{"related":{"list":["base-cli","base-data","base-methods","base-options","base-plugins","base-store"]},"reflinks":["base-methods"],"plugins":["gulp-format-md"]},"gitHead":"0d9878278388ea12de2cee35352875eecae22a0e","_id":"base-config@0.3.6","_shasum":"c9a28fc97198c3b2b612df93753338487e86f7d7","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c9a28fc97198c3b2b612df93753338487e86f7d7","tarball":"http://registry-npm.ywwl.com/base-config/download/base-config-0.3.6.tgz","integrity":"sha512-6YZwVxSuIzXYKpU6Aw4JVuNYRH2qSq5XjWuniwi138z95NadkLljcELGp2PfLToN7YY8GZmwnbSIglF9PsVFbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEHJb8lazZDNxcrz0i8OXPQg+How6GXZ6lsm7LYMLDbnAiArxKr0IDaXCnpEOJlaVrJEMneT3mYDe5olKVpt9QrsIA=="}],"size":4294,"noattachment":false,"key":"/base-config/-/base-config-0.3.6.tgz"},"directories":{},"readme":"# base-config [![NPM version](https://img.shields.io/npm/v/base-config.svg?style=flat)](https://www.npmjs.com/package/base-config) [![NPM downloads](https://img.shields.io/npm/dm/base-config.svg?style=flat)](https://npmjs.org/package/base-config) [![Build Status](https://img.shields.io/travis/node-base/base-config.svg?style=flat)](https://travis-ci.org/node-base/base-config)\n\n> base-methods plugin that adds a `config` method for mapping declarative configuration values to other 'base' methods or custom functions.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install base-config --save\n```\n\n## Usage\n\n```js\nvar config = require('base-config');\nvar base = require('base');\nvar app = base();\n\n// register the plugin\napp.use(config());\n```\n\n## Mapped methods\n\nThe following methods are mapped by default, but any of them can be [overridden](#map-custom-methods) using `app.config.map()`:\n\n* `.cwd`\n* `.data`\n* `.define`\n* `.del`\n* `.disable`\n* `.disabled`\n* `.enable`\n* `.enabled`\n* `.get`\n* `.has`\n* `.option`\n* `.set`\n* `.store`\n* `.use`\n\n## Map custom methods\n\n> Map properties on a configuration object to methods on `app`.\n\nEach key on the given object should match the name of a method on `app`.\n\n```js\n// call `config` as a function\napp.config({\n  set: function(val) {\n    app.set(val);\n  }\n});\n// or use the `map` method\napp.config\n  .map('set')\n  .map('get')\n  .map('has');\n```\n\n## Process\n\nIterate over each property on the given object or array of objects, and call the mapped method that matches property key.\n\n```js\n//=> calls `app.set('foo', 'bar');\napp.config.process({set: {foo: 'bar'}}, function(err) {\n  if (err) throw err;\n});\n```\n\n## API\n\n### [create](index.js#L30)\n\nCreate a function for mapping `app` properties onto the\ngiven `prop` namespace.\n\n**Params**\n\n* `prop` **{String}**: The namespace to use\n* `argv` **{Object}**\n* `returns` **{Object}**\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)\n* [base-cli](https://www.npmjs.com/package/base-cli): Plugin for base-methods that maps built-in methods to CLI args (also supports methods from a… [more](https://www.npmjs.com/package/base-cli) | [homepage](https://github.com/node-base/base-cli)\n* [base-data](https://www.npmjs.com/package/base-data): adds a `data` method to base-methods. | [homepage](https://github.com/jonschlinkert/base-data)\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://www.npmjs.com/package/base-options) | [homepage](https://github.com/jonschlinkert/base-options)\n* [base-plugins](https://www.npmjs.com/package/base-plugins): Upgrade's plugin support in base applications to allow plugins to be called any time after… [more](https://www.npmjs.com/package/base-plugins) | [homepage](https://github.com/node-base/base-plugins)\n* [base-store](https://www.npmjs.com/package/base-store): Plugin for getting and persisting config values with your base-methods application. Adds a 'store' object… [more](https://www.npmjs.com/package/base-store) | [homepage](https://github.com/node-base/base-store)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/base-config/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb && npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/node-base/base-config/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v, on March 25, 2016._","publish_time":1453499918552,"_cnpm_publish_time":1453499918552,"dist-tags":{"latest":"0.5.2"}}