{"_id":"base-options","_rev":"231809","name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","dist-tags":{"latest":"0.6.0"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:41.000Z","created":"2015-10-02T05:19:58.523Z","0.6.0":"2016-02-03T15:43:08.796Z","0.5.5":"2016-01-19T21:58:21.380Z","0.5.4":"2015-11-02T05:53:07.679Z","0.5.2":"2015-10-31T13:02:08.768Z","0.5.0":"2015-10-29T03:05:16.009Z","0.4.3":"2015-10-28T20:58:44.447Z","0.4.2":"2015-10-23T19:47:31.223Z","0.4.1":"2015-10-23T19:39:35.788Z","0.4.0":"2015-10-18T18:59:15.217Z","0.3.0":"2015-10-06T09:29:48.378Z","0.1.3":"2015-10-02T18:35:26.769Z","0.1.2":"2015-10-02T17:39:28.539Z","0.1.0":"2015-10-02T05:19:58.523Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"versions":{"0.6.0":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","deprecated":"`base-options` has been deprecated and renamed to `base-option`. See https://github.com/node-base/base-option","version":"0.6.0","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/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":"4f961d70381e0c2a7c273ac0b26b275df824a740","_id":"base-options@0.6.0","_shasum":"94af4aa7fdc9d4de1582f443e107576ce19813cc","_from":".","_npmVersion":"3.5.2","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"94af4aa7fdc9d4de1582f443e107576ce19813cc","size":3040,"noattachment":false,"key":"/base-options/-/base-options-0.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.6.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/base-options-0.6.0.tgz_1454514186073_0.4548719951417297"},"directories":{},"publish_time":1454514188796,"_cnpm_publish_time":1454514188796,"_hasShrinkwrap":false},"0.5.5":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.5.5","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/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":"42fb16d8b7711f19b506f3c07917c32c20a8fa45","_id":"base-options@0.5.5","_shasum":"7f891e88d8af3a48b0799de817e9948279a5eb04","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"7f891e88d8af3a48b0799de817e9948279a5eb04","size":3012,"noattachment":false,"key":"/base-options/-/base-options-0.5.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.5.5.tgz"},"directories":{},"publish_time":1453240701380,"_cnpm_publish_time":1453240701380,"_hasShrinkwrap":false},"0.5.4":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.5.4","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","option-cache":"^3.1.0"},"devDependencies":{"base-methods":"^0.4.0","base-plugins":"^0.4.1","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-istanbul":"^0.10.1","gulp-mocha":"^2.1.3","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"description":"","list":["base-data","base-methods","class-utils"]}},"gitHead":"afd1c280735a583d2e9ba882ad1b99d2197a96b2","_id":"base-options@0.5.4","_shasum":"4bd8b81b34a306e739fb4c597d45881d2424d24c","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"4bd8b81b34a306e739fb4c597d45881d2424d24c","size":2972,"noattachment":false,"key":"/base-options/-/base-options-0.5.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.5.4.tgz"},"directories":{},"publish_time":1446443587679,"_cnpm_publish_time":1446443587679,"_hasShrinkwrap":false},"0.5.2":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.5.2","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","option-cache":"^3.1.0"},"devDependencies":{"base-methods":"^0.3.1","base-plugins":"^0.4.1","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"41db64cf3daabff1b202a42e1be817df82f9841c","_id":"base-options@0.5.2","_shasum":"a7f8984655037deeb299c7de94cf9f5139c10a8b","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a7f8984655037deeb299c7de94cf9f5139c10a8b","size":2992,"noattachment":false,"key":"/base-options/-/base-options-0.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.5.2.tgz"},"directories":{},"publish_time":1446296528768,"_cnpm_publish_time":1446296528768,"_hasShrinkwrap":false},"0.5.0":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.5.0","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","option-cache":"^3.0.0"},"devDependencies":{"base-methods":"^0.2.11","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"0d7e2aee0e7f857d1185a55fc87ec3dce0536073","_id":"base-options@0.5.0","_shasum":"116d2286e0ae5e25156ecaf0263c85c92fcf59fc","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"116d2286e0ae5e25156ecaf0263c85c92fcf59fc","size":2862,"noattachment":false,"key":"/base-options/-/base-options-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.5.0.tgz"},"directories":{},"publish_time":1446087916009,"_cnpm_publish_time":1446087916009,"_hasShrinkwrap":false},"0.4.3":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.4.3","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"option-cache":"^3.0.0"},"devDependencies":{"base-methods":"^0.2.11","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"0d7e2aee0e7f857d1185a55fc87ec3dce0536073","_id":"base-options@0.4.3","_shasum":"0c7d0010c222a612a9f565fea572a35c87547b31","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"0c7d0010c222a612a9f565fea572a35c87547b31","size":2822,"noattachment":false,"key":"/base-options/-/base-options-0.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.4.3.tgz"},"directories":{},"publish_time":1446065924447,"_cnpm_publish_time":1446065924447,"_hasShrinkwrap":false},"0.4.2":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.4.2","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"option-cache":"^3.0.0"},"devDependencies":{"base-methods":"^0.2.11","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"38ecff94018b88710d78bbc748201c7e31ed9619","_id":"base-options@0.4.2","_shasum":"5d3df6dc48166ccf9277cb7b00f609c774326d62","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5d3df6dc48166ccf9277cb7b00f609c774326d62","size":2822,"noattachment":false,"key":"/base-options/-/base-options-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.4.2.tgz"},"directories":{},"publish_time":1445629651223,"_cnpm_publish_time":1445629651223,"_hasShrinkwrap":false},"0.4.1":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.4.1","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"option-cache":"^3.0.0"},"devDependencies":{"base-methods":"^0.2.11","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"a519c83ef423372b779207b6d52f192937509893","_id":"base-options@0.4.1","_shasum":"ed355a82b0bd0d8f0f6226bc836ef21dac5aa470","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ed355a82b0bd0d8f0f6226bc836ef21dac5aa470","size":2853,"noattachment":false,"key":"/base-options/-/base-options-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.4.1.tgz"},"directories":{},"publish_time":1445629175788,"_cnpm_publish_time":1445629175788,"_hasShrinkwrap":false},"0.4.0":{"name":"base-options","description":"Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"option-cache":"^3.0.0"},"devDependencies":{"base-methods":"^0.2.11","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"6148ef52383335cdcfc1c9acc6f63838df92c3c2","_id":"base-options@0.4.0","_shasum":"a1a93aeae65750adce386d4ca4facd5edb7ec01c","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a1a93aeae65750adce386d4ca4facd5edb7ec01c","size":2829,"noattachment":false,"key":"/base-options/-/base-options-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.4.0.tgz"},"directories":{},"publish_time":1445194755217,"_cnpm_publish_time":1445194755217,"_hasShrinkwrap":false},"0.3.0":{"name":"base-options","description":"Adds an `option` method to base-methods.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"get-value":"^1.2.1","lazy-cache":"^0.2.3","set-value":"^0.2.0"},"devDependencies":{"base-methods":"^0.2.11","gulp":"^3.9.0","gulp-istanbul":"^0.10.1","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"d7351be71a48ec246faa1ecdaa27c248c3b3c292","_id":"base-options@0.3.0","_shasum":"ff0f80e1037337e7066b978cfbf27ee2d12ca404","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ff0f80e1037337e7066b978cfbf27ee2d12ca404","size":2414,"noattachment":false,"key":"/base-options/-/base-options-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.3.0.tgz"},"directories":{},"publish_time":1444123788378,"_cnpm_publish_time":1444123788378,"_hasShrinkwrap":false},"0.1.3":{"name":"base-options","description":"Adds an `option` method to base-methods.","version":"0.1.3","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"base-methods":"^0.2.10","get-value":"^1.2.1","lazy-cache":"^0.2.3","set-value":"^0.2.0"},"devDependencies":{"mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"3e725c2768c067501cea27b0f4aa5961ee02d47d","_id":"base-options@0.1.3","_shasum":"da04e73689365da5709a31850dee1b4900353214","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"da04e73689365da5709a31850dee1b4900353214","size":2322,"noattachment":false,"key":"/base-options/-/base-options-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.1.3.tgz"},"directories":{},"publish_time":1443810926769,"_cnpm_publish_time":1443810926769,"_hasShrinkwrap":false},"0.1.2":{"name":"base-options","description":"Adds an `option` method to base-methods.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"base-methods":"^0.2.10","get-value":"^1.2.1","lazy-cache":"^0.2.3","set-value":"^0.2.0"},"devDependencies":{"mocha":"*"},"keywords":["app","base","base-methods","data","extend","merge","methods"],"verb":{"related":{"list":["base-data","base-methods","class-utils"]}},"gitHead":"f825ff8c861f99f077896a02a3b1c482656a57bf","_id":"base-options@0.1.2","_shasum":"05029abdc3c6e9ac04529e9e755447a5d5437e03","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"05029abdc3c6e9ac04529e9e755447a5d5437e03","size":2190,"noattachment":false,"key":"/base-options/-/base-options-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.1.2.tgz"},"directories":{},"publish_time":1443807568539,"_cnpm_publish_time":1443807568539,"_hasShrinkwrap":false},"0.1.0":{"name":"base-options","description":"Adds an `option` method to base-methods.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/base-options","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/base-options.git"},"bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"base-methods":"^0.2.10"},"devDependencies":{"mocha":"*"},"keywords":[],"verb":{"related":{"list":["base-methods","class-utils"]}},"_id":"base-options@0.1.0","_shasum":"022c2f4cd2ea984557ac8b3f5270851bda691b83","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"022c2f4cd2ea984557ac8b3f5270851bda691b83","size":2086,"noattachment":false,"key":"/base-options/-/base-options-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-options/download/base-options-0.1.0.tgz"},"directories":{},"publish_time":1443763198523,"_cnpm_publish_time":1443763198523,"_hasShrinkwrap":false}},"readme":"# base-options [![NPM version](https://img.shields.io/npm/v/base-options.svg)](https://www.npmjs.com/package/base-options) [![Build Status](https://img.shields.io/travis/jonschlinkert/base-options.svg)](https://travis-ci.org/jonschlinkert/base-options)\n\n> Adds a few options methods to base-methods, like `option`, `enable` and `disable`. See the readme for the full API.\n\n## Install\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i base-options --save\n```\n\n## Usage\n\nUse as a plugin with with your `base` application:\n\n```js\nvar Base = require('base-methods');\nvar options = require('base-options');\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](index.js#L53)\n\nSet or get an option.\n\n**Params**\n\n* `key` **{String}**: The option name.\n* `value` **{*}**: The value to set.\n* `returns` **{*}**: 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](index.js#L96)\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](index.js#L114)\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](index.js#L131)\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](index.js#L153)\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](index.js#L174)\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](index.js#L200)\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](index.js#L226)\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](index.js#L249)\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\n## Related projects\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-methods](https://www.npmjs.com/package/base-methods): base-methods is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base-methods) | [homepage](https://github.com/jonschlinkert/base-methods)\n* [class-utils](https://www.npmjs.com/package/class-utils): Utils for working with JavaScript classes and prototype methods. | [homepage](https://github.com/jonschlinkert/class-utils)  \n\n## Running tests\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Coverage\n\nAs of January 19, 2016\n\n```sh\nStatements  : 100% (6/6)\nBranches    : 100% (2/2)\nFunctions   : 100% (1/1)\nLines       : 100% (6/6)\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/base-options/issues/new).\n\n## Author\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\nCopyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on January 19, 2016._\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/base-options","bugs":{"url":"https://github.com/jonschlinkert/base-options/issues"},"license":"MIT"}