{"_id":"base-option","_rev":"39204","name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:11:24.000Z","created":"2016-02-03T15:46:05.300Z","1.0.0":"2017-05-30T16:21:11.051Z","0.8.4":"2016-07-04T16:42:16.319Z","0.8.3":"2016-06-27T23:26:27.119Z","0.8.2":"2016-05-24T16:52:59.686Z","0.8.1":"2016-05-24T16:31:40.960Z","0.8.0":"2016-05-24T16:23:23.621Z","0.7.0":"2016-03-09T07:47:12.653Z","0.6.2":"2016-03-02T07:51:49.404Z","0.6.1":"2016-02-03T15:48:08.813Z","0.6.0":"2016-02-03T15:46:05.300Z"},"users":{"jonschlinkert":true},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"versions":{"1.0.0":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"1.0.0","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Brian Woodward","url":"https://twitter.com/doowb"},{"name":"Jon Schlinkert","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^1.0.0","get-value":"^2.0.6","is-valid-app":"^0.3.0","isobject":"^3.0.0","lazy-cache":"^2.0.2","mixin-deep":"^1.2.0","option-cache":"^4.0.0","set-value":"^1.0.0"},"devDependencies":{"base":"^0.13.0","base-plugins":"^1.0.0","gulp":"^3.9.1","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.12","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","mocha":"^3.4.2"},"keywords":["api","app","application","base","base-plugin","baseplugin","building-blocks","config","configuration","create","framework","option","options","plugin","plugins","settings","tool","toolkit","tools"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-data","base-task"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"6a94d4467a37506039b215073f805993fa404416","_id":"base-option@1.0.0","_shasum":"ff7c3d982dc12c78cee2b139e13174d241bf1794","_from":".","_npmVersion":"4.6.1","_nodeVersion":"7.7.3","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ff7c3d982dc12c78cee2b139e13174d241bf1794","size":4227,"noattachment":false,"key":"/base-option/-/base-option-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-1.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base-option-1.0.0.tgz_1496161270017_0.38368748174980283"},"directories":{},"publish_time":1496161271051,"_hasShrinkwrap":false,"_cnpm_publish_time":1496161271051},"0.8.4":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.8.4","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","LICENSE","README.md","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.6","is-valid-app":"^0.2.0","isobject":"^2.1.0","lazy-cache":"^2.0.1","mixin-deep":"^1.1.3","option-cache":"^3.4.0","set-value":"^0.3.3"},"devDependencies":{"base":"^0.11.1","base-plugins":"^0.4.13","gulp":"^3.9.1","gulp-eslint":"^3.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^1.0.0","gulp-mocha":"^2.2.0","mocha":"^2.5.3"},"keywords":["api","app","application","base","baseplugin","building-blocks","config","configuration","create","framework","option","options","plugin","plugins","settings","tool","toolkit","tools"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-task","base-data"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"8c096f1ef494a7b15e1875c133945bd32fbecbfc","_id":"base-option@0.8.4","_shasum":"11417fa9244f227a4d537b4d291723462787d5c7","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"11417fa9244f227a4d537b4d291723462787d5c7","size":2550,"noattachment":false,"key":"/base-option/-/base-option-0.8.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.8.4.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-option-0.8.4.tgz_1467650534053_0.19624535250477493"},"directories":{},"publish_time":1467650536319,"_cnpm_publish_time":1467650536319,"_hasShrinkwrap":false},"0.8.3":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.8.3","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.6","is-valid-app":"^0.2.0","isobject":"^2.1.0","lazy-cache":"^2.0.1","mixin-deep":"^1.1.3","option-cache":"^3.3.5","set-value":"^0.3.3"},"devDependencies":{"base":"^0.8.1","base-plugins":"^0.4.10","gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^0.10.4","gulp-mocha":"^2.2.0","mocha":"^2.5.2"},"keywords":["api","app","application","base","baseplugin","building-blocks","config","configuration","create","framework","option","options","plugin","plugins","settings","tool","toolkit","tools"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-data","class-utils"]},"reflinks":["verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"626fa8a77a3f047f1e7926d8ee3bd305a88589a5","_id":"base-option@0.8.3","_shasum":"14f41c6a2515574c206095b1e44cbe53e2911a24","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"14f41c6a2515574c206095b1e44cbe53e2911a24","size":2544,"noattachment":false,"key":"/base-option/-/base-option-0.8.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.8.3.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-option-0.8.3.tgz_1467069984699_0.09572673705406487"},"directories":{},"publish_time":1467069987119,"_cnpm_publish_time":1467069987119,"_hasShrinkwrap":false},"0.8.2":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.8.2","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.5","is-registered":"^0.1.4","isobject":"^2.1.0","lazy-cache":"^2.0.1","mixin-deep":"^1.1.3","option-cache":"^3.3.5","set-value":"^0.3.3"},"devDependencies":{"base":"^0.8.1","base-plugins":"^0.4.10","gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^0.10.4","gulp-mocha":"^2.2.0","mocha":"^2.5.2"},"keywords":["app","application","base","baseplugin","config","configuration","option","options","settings"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-data","class-utils"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"538b3000b1d2193841db10befd3b8df0e29a7682","_id":"base-option@0.8.2","_shasum":"3008494e2c245b2cb8564670fcc8200991574c6a","_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":"3008494e2c245b2cb8564670fcc8200991574c6a","size":4022,"noattachment":false,"key":"/base-option/-/base-option-0.8.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.8.2.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-option-0.8.2.tgz_1464108777223_0.15608584391884506"},"directories":{},"publish_time":1464108779686,"_cnpm_publish_time":1464108779686,"_hasShrinkwrap":false},"0.8.1":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.8.1","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.5","is-registered":"^0.1.4","isobject":"^2.1.0","lazy-cache":"^2.0.1","mixin-deep":"^1.1.3","option-cache":"^3.3.5","set-value":"^0.3.3"},"devDependencies":{"base":"^0.8.1","base-plugins":"^0.4.10","gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^0.10.4","gulp-mocha":"^2.2.0","mocha":"^2.5.2"},"keywords":["app","application","base","baseplugin","config","configuration","option","options","settings"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-data","class-utils"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"48036e518e995736bf3131481043270de4081945","_id":"base-option@0.8.1","_shasum":"47347b0a82721fa4306655a69d1a8e114c026c38","_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":"47347b0a82721fa4306655a69d1a8e114c026c38","size":4027,"noattachment":false,"key":"/base-option/-/base-option-0.8.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.8.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-option-0.8.1.tgz_1464107499714_0.7587542156688869"},"directories":{},"publish_time":1464107500960,"_cnpm_publish_time":1464107500960,"_hasShrinkwrap":false},"0.8.0":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.8.0","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.5","is-registered":"^0.1.4","is-valid-instance":"^0.1.0","lazy-cache":"^2.0.1","mixin-deep":"^1.1.3","option-cache":"^3.3.5","set-value":"^0.3.3"},"devDependencies":{"base":"^0.8.1","base-plugins":"^0.4.10","gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.9","gulp-istanbul":"^0.10.4","gulp-mocha":"^2.2.0","mocha":"^2.5.2"},"keywords":["app","application","base","baseplugin","config","configuration","option","options","settings"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-data","class-utils"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"6c54659a69bba8962a3b11bd9ae8ea67f90262a5","_id":"base-option@0.8.0","_shasum":"77aceba198b86ebfb6a369560d1a38c576f0b041","_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":"77aceba198b86ebfb6a369560d1a38c576f0b041","size":4029,"noattachment":false,"key":"/base-option/-/base-option-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.8.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base-option-0.8.0.tgz_1464107002299_0.3648549357894808"},"directories":{},"publish_time":1464107003621,"_cnpm_publish_time":1464107003621,"_hasShrinkwrap":false},"0.7.0":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.7.0","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.3","lazy-cache":"^1.0.3","mixin-deep":"^1.1.3","option-cache":"^3.3.4","set-value":"^0.3.3"},"devDependencies":{"base":"^0.7.9","base-plugins":"^0.4.4","gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.7","gulp-istanbul":"^0.10.3","gulp-mocha":"^2.2.0","mocha":"^2.4.5"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base-data","base-methods","class-utils"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"6c54659a69bba8962a3b11bd9ae8ea67f90262a5","_id":"base-option@0.7.0","_shasum":"735666bc422769e86e1aee77be7ca4405d52bdc2","_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":"735666bc422769e86e1aee77be7ca4405d52bdc2","size":3834,"noattachment":false,"key":"/base-option/-/base-option-0.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.7.0.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/base-option-0.7.0.tgz_1457509628277_0.3759196111932397"},"directories":{},"publish_time":1457509632653,"_cnpm_publish_time":1457509632653,"_hasShrinkwrap":false},"0.6.2":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.6.2","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js","utils.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"define-property":"^0.2.5","get-value":"^2.0.3","lazy-cache":"^1.0.3","mixin-deep":"^1.1.3","option-cache":"^3.3.4","set-value":"^0.3.3"},"devDependencies":{"base":"^0.7.9","base-plugins":"^0.4.4","gulp":"^3.9.1","gulp-eslint":"^2.0.0","gulp-format-md":"^0.1.7","gulp-istanbul":"^0.10.3","gulp-mocha":"^2.2.0","mocha":"^2.4.5"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base-data","base-methods","class-utils"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"a2280d74087314cb7e3d86fef3bf3166c99eceb2","_id":"base-option@0.6.2","_shasum":"d4cff6c86e673c693dfc2450b07fa36ebd232e85","_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":"d4cff6c86e673c693dfc2450b07fa36ebd232e85","size":3789,"noattachment":false,"key":"/base-option/-/base-option-0.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.6.2.tgz"},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/base-option-0.6.2.tgz_1456905106830_0.5501596180256456"},"directories":{},"publish_time":1456905109404,"_cnpm_publish_time":1456905109404,"_hasShrinkwrap":false},"0.6.1":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.6.1","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","option-cache":"^3.2.0"},"devDependencies":{"base":"^0.6.4","base-plugins":"^0.4.1","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-istanbul":"^0.10.3","gulp-mocha":"^2.2.0","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"],"description":""}},"gitHead":"24dfb01f98d25347a1ca462655b35174f05134a8","_id":"base-option@0.6.1","_shasum":"477a711077d92e797c9236fb132e412f7012dcd6","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"477a711077d92e797c9236fb132e412f7012dcd6","size":3008,"noattachment":false,"key":"/base-option/-/base-option-0.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.6.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/base-option-0.6.1.tgz_1454514485897_0.31188470241613686"},"directories":{},"publish_time":1454514488813,"_cnpm_publish_time":1454514488813,"_hasShrinkwrap":false},"0.6.0":{"name":"base-option","description":"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.6.0","homepage":"https://github.com/node-base/base-option","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-option.git"},"bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","option-cache":"^3.2.0"},"devDependencies":{"base":"^0.6.4","base-plugins":"^0.4.1","gulp":"^3.9.0","gulp-eslint":"^1.1.1","gulp-istanbul":"^0.10.3","gulp-mocha":"^2.2.0","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"],"description":""}},"gitHead":"828109cfa203ca12cdf6b17a27410a081a197539","_id":"base-option@0.6.0","_shasum":"253b95595202f01e4b5f3a3d87f436991dc1d906","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"253b95595202f01e4b5f3a3d87f436991dc1d906","size":3007,"noattachment":false,"key":"/base-option/-/base-option-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-option/download/base-option-0.6.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/base-option-0.6.0.tgz_1454514363954_0.671554576838389"},"directories":{},"publish_time":1454514365300,"_cnpm_publish_time":1454514365300,"_hasShrinkwrap":false}},"readme":"# base-option [![NPM version](https://img.shields.io/npm/v/base-option.svg?style=flat)](https://www.npmjs.com/package/base-option) [![NPM monthly downloads](https://img.shields.io/npm/dm/base-option.svg?style=flat)](https://npmjs.org/package/base-option) [![NPM total downloads](https://img.shields.io/npm/dt/base-option.svg?style=flat)](https://npmjs.org/package/base-option) [![Linux Build Status](https://img.shields.io/travis/node-base/base-option.svg?style=flat&label=Travis)](https://travis-ci.org/node-base/base-option)\n\n> Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save base-option\n```\n\n## Usage\n\nUse as a plugin with with your `base` application:\n\n```js\nvar Base = require('base');\nvar options = require('base-option');\n\nvar base = new Base();\nbase.use(options()); // plugin\n\n// set an option\napp.option('a', 'b');\n\n// set a nested property\napp.option('x.y', 'z');\n\n// get an option\nconsole.log(app.option('x'));\n//=> {y: 'z'}\n```\n\n## API\n\n### .option\n\nSet or get an option.\n\n**Params**\n\n* `key` **{String}**: The option name.\n* `value` **{any}**: The value to set.\n* `returns` **{any}**: Returns a `value` when only `key` is defined.\n\n**Example**\n\n```js\napp.option('a', true);\napp.option('a');\n//=> true\n```\n\n### .hasOption\n\nReturn true if `options.hasOwnProperty(key)`\n\n**Params**\n\n* `prop` **{String}**\n* `returns` **{Boolean}**: True if `prop` exists.\n\n**Example**\n\n```js\napp.hasOption('a');\n//=> false\napp.option('a', 'b');\napp.hasOption('a');\n//=> true\n```\n\n### .enable\n\nEnable `key`.\n\n**Params**\n\n* `key` **{String}**\n* `returns` **{Object}** `Options`: to enable chaining\n\n**Example**\n\n```js\napp.enable('a');\n```\n\n### .disable\n\nDisable `key`.\n\n**Params**\n\n* `key` **{String}**: The option to disable.\n* `returns` **{Object}** `Options`: to enable chaining\n\n**Example**\n\n```js\napp.disable('a');\n```\n\n### .enabled\n\nCheck if `prop` is enabled (truthy).\n\n**Params**\n\n* `prop` **{String}**\n* `returns` **{Boolean}**\n\n**Example**\n\n```js\napp.enabled('a');\n//=> false\n\napp.enable('a');\napp.enabled('a');\n//=> true\n```\n\n### .disabled\n\nCheck if `prop` is disabled (falsey).\n\n**Params**\n\n* `prop` **{String}**\n* `returns` **{Boolean}**: Returns true if `prop` is disabled.\n\n**Example**\n\n```js\napp.disabled('a');\n//=> true\n\napp.enable('a');\napp.disabled('a');\n//=> false\n```\n\n### .isTrue\n\nReturns true if the value of `prop` is strictly `true`.\n\n**Params**\n\n* `prop` **{String}**\n* `returns` **{Boolean}**: Uses strict equality for comparison.\n\n**Example**\n\n```js\napp.option('a', 'b');\napp.isTrue('a');\n//=> false\n\napp.option('c', true);\napp.isTrue('c');\n//=> true\n\napp.option({a: {b: {c: true}}});\napp.isTrue('a.b.c');\n//=> true\n```\n\n### .isFalse\n\nReturns true if the value of `key` is strictly `false`.\n\n**Params**\n\n* `prop` **{String}**\n* `returns` **{Boolean}**: Uses strict equality for comparison.\n\n**Example**\n\n```js\napp.option('a', null);\napp.isFalse('a');\n//=> false\n\napp.option('c', false);\napp.isFalse('c');\n//=> true\n\napp.option({a: {b: {c: false}}});\napp.isFalse('a.b.c');\n//=> true\n```\n\n### .isBoolean\n\nReturn true if the value of key is either `true` or `false`.\n\n**Params**\n\n* `key` **{String}**\n* `returns` **{Boolean}**: True if `true` or `false`.\n\n**Example**\n\n```js\napp.option('a', 'b');\napp.isBoolean('a');\n//=> false\n\napp.option('c', true);\napp.isBoolean('c');\n//=> true\n```\n\n### [.option.set](index.js#L45)\n\nSet option `key` on `app.options` with the given `value`\n\n**Params**\n\n* `key` **{String}**: Option key, dot-notation may be used.\n* `value` **{any}**\n\n**Example**\n\n```js\napp.option.set('a', 'b');\nconsole.log(app.option.get('a'));\n//=> 'b'\n```\n\n### [.option.get](index.js#L64)\n\nGet option `key` from `app.options`\n\n**Params**\n\n* `key` **{String}**: Option key, dot-notation may be used.\n* `returns` **{any}**\n\n**Example**\n\n```js\napp.option({a: 'b'});\nconsole.log(app.option.get('a'));\n//=> 'b'\n```\n\n### [.option.create](index.js#L82)\n\nReturns a shallow clone of `app.options` with all of the options methods, as well as a `.merge` method for merging options onto the cloned object.\n\n**Params**\n\n* `options` **{Options}**: Object to merge onto the returned options object.\n* `returns` **{Object}**\n\n**Example**\n\n```js\nvar opts = app.option.create();\nopts.merge({foo: 'bar'});\n```\n\n## About\n\n### Related projects\n\n* [base-data](https://www.npmjs.com/package/base-data): adds a `data` method to base-methods. | [homepage](https://github.com/node-base/base-data \"adds a `data` method to base-methods.\")\n* [base-task](https://www.npmjs.com/package/base-task): base plugin that provides a very thin wrapper around [https://github.com/doowb/composer](https://github.com/doowb/composer) for adding task methods to… [more](https://github.com/node-base/base-task) | [homepage](https://github.com/node-base/base-task \"base plugin that provides a very thin wrapper around <https://github.com/doowb/composer> for adding task methods to your application.\")\n* [base](https://www.npmjs.com/package/base): Framework for rapidly creating high quality node.js applications, using plugins like building blocks | [homepage](https://github.com/node-base/base \"Framework for rapidly creating high quality node.js applications, using plugins like building blocks\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 64 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 4 | [doowb](https://github.com/doowb) |\n\n### Building docs\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### Running tests\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### Author\n\n**Jon Schlinkert**\n\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 May 30, 2017._","_attachments":{},"homepage":"https://github.com/node-base/base-option","bugs":{"url":"https://github.com/node-base/base-option/issues"},"license":"MIT"}