{"_id":"options-cache","_rev":"17-720471694720e4eefa84f8d68da7c946","name":"options-cache","description":"Simple API for managing options in JavaScript applications.","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"options-cache","description":"Get and set options. Easy to use options cache for node.js projects.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["node.js","javascript","obj","object","opt","opts","cache","options","option","config","set","get","extend"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb-tag-jscomments":">= 0.1.4","verb":">= 0.2.6","mocha":"*"},"_id":"options-cache@0.1.0","_shasum":"6397462af6d3774c610588e6c0e4cf1b3197050d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6397462af6d3774c610588e6c0e4cf1b3197050d","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.1.0.tgz","integrity":"sha512-5AKnA8E/9DQDt80AfRpgWUYhSzFyPkOWSbmiwdbwacxvlTFPdI2DbRpLRiE4pZA4bMxUsv0Bg4ZED72PyhX/tQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1GSpZmXuHahh8POMMj362eSP5VvX9Q33aT3IRXak5eQIhAKalL29t0J9KEQfSnQ5q/QiwaO1EtTUBJ4J8B2oxS7x4"}]}},"0.1.1":{"name":"options-cache","description":"Get and set options. Easy to use options cache for node.js projects.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["node.js","javascript","obj","object","opt","opts","cache","options","option","config","set","get","extend"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb-tag-jscomments":">= 0.1.4","verb":">= 0.2.6","mocha":"*"},"dependencies":{"lodash":"^2.4.1"},"_id":"options-cache@0.1.1","_shasum":"b6abfaad3b199fb26d378dde033f4620c96c0fdc","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b6abfaad3b199fb26d378dde033f4620c96c0fdc","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.1.1.tgz","integrity":"sha512-dckasHa/l42rcWsFg+KPH5jl6wQ8u5f30c2gkE/Dn8HeK8zpxk8CIu1Igh8dLvsyqRl5aznOiHMPAFdC1dDWCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRrjNPfS2ANLAHO9heYaYgRjb3eTu+HnaaDWLAeK+QtAiASEC/0qWXeBSjJP2I9xhaEUF7i/QiJlm95Z1Zvs1oyYQ=="}]}},"0.1.2":{"name":"options-cache","description":"Get and set options easily, for node.js projects.","version":"0.1.2","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["node.js","javascript","obj","object","opt","opts","cache","options","option","config","set","get","extend"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"lodash":"^2.4.1","verb-tag-jscomments":"^0.2.0"},"_id":"options-cache@0.1.2","_shasum":"63b87b96fad503775c36b07a2103baf096a7ec3d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"63b87b96fad503775c36b07a2103baf096a7ec3d","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.1.2.tgz","integrity":"sha512-ZfZBrvgmnjh2u+07lm1+bs7OgzIw0OpUXvnsGsikZmsVC8E3oy/Eni6cj+Go7DOl0iq7SiGaRIIQrkFJNRpfBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+pJnAvdMElutnMvNhdpCG/WcacNwwdZ6OaLCdBwvQjQIgLXOwoif74LuMRl6JMGhiPzwTOIgaZB7XshlXpydQkyY="}]}},"0.2.0":{"name":"options-cache","description":"Get and set options easily, for node.js projects.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["node.js","javascript","obj","object","opt","opts","cache","options","option","config","set","get","extend"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"lodash":"^2.4.1","verb-tag-jscomments":"^0.2.0"},"_id":"options-cache@0.2.0","_shasum":"60d7a43b797cb9829974ec94e7a1d6d8908c2fcb","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"60d7a43b797cb9829974ec94e7a1d6d8908c2fcb","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.2.0.tgz","integrity":"sha512-ZpM2Ww9sh7mI3N7jCMK43/v2OBkgJVdBAEQB5NQNkSJNfCOvJnAtsZmZUFmGpg0yuqlSRNF260G/7EUVxNgthA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDanOCde8Ebb7W3Z6wIX2wyWGdU0ACW3E3YRbzujSLa/AIhALbHNzzPRSSnddqCUHH213tNIyeBZ0U9V4LgbK2aPmEI"}]}},"0.2.1":{"name":"options-cache","description":"Get and set options easily, for node.js projects.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["node.js","javascript","obj","object","opt","opts","cache","options","option","config","set","get","extend"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6"},"dependencies":{"lodash":"^2.4.1","verb-tag-jscomments":"^0.2.0"},"_id":"options-cache@0.2.1","_shasum":"c2199c590b71875a7a8611a9ac5ff7a57eedea89","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"c2199c590b71875a7a8611a9ac5ff7a57eedea89","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.2.1.tgz","integrity":"sha512-VS1aVtsffvcLqcMBMnx4OjAGcC2tZ5t4jYUYgOypBO9RkMVM0tvvqhlkwq5nFqJCAhCnsWbMpUc9coVy320dgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKJaPHhJ5Z/8w10PdtR5SOdaLD/7Iux/RnR2stkSfhdAIhAKDA/TyDb1b09S2vIBCUpPFF88xKRXjKCM9h+NLHj8vr"}]}},"0.3.0":{"name":"options-cache","description":"Simple API for managing options in JavaScript applications.","version":"0.3.0","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["cache","config","define","disable","disabled","enable","enabled","extend","get","javascript","node.js","obj","object","opt","option","options","opts","set"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":"^0.2.0"},"dependencies":{"kind-of":"^0.1.0","object.omit":"^0.2.0"},"_id":"options-cache@0.3.0","_shasum":"fbee9d373aab07ece5fe5619cadc7f0f0c8fbd75","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"fbee9d373aab07ece5fe5619cadc7f0f0c8fbd75","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.3.0.tgz","integrity":"sha512-aY/2CvGfQALlAicZZS4/VcuZ8/5usY4z3uka9uspV/Wq1IlY4g9GDaOhmhYg+zPBuFP3/mMfYSOZbiMVk7UAeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG/eK/DsOi3tHITrGA81+XS1qK7CitHKpvHezBxj4E4RAiEA7lh/GqksjIytxOlV1JXg+6rUASn9IRNO6rzIVg0e4rc="}]}},"0.3.1":{"name":"options-cache","description":"Simple API for managing options in JavaScript applications.","version":"0.3.1","homepage":"https://github.com/jonschlinkert/options-cache","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/options-cache/blob/master/LICENSE-MIT"}],"keywords":["cache","config","define","disable","disabled","enable","enabled","extend","get","javascript","node.js","obj","object","opt","option","options","opts","set"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":"^0.2.0"},"dependencies":{"kind-of":"^0.1.0"},"_id":"options-cache@0.3.1","_shasum":"bff4632cff603ff4377c86021e64aa690b625b44","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"bff4632cff603ff4377c86021e64aa690b625b44","tarball":"https://registry.npmjs.org/options-cache/-/options-cache-0.3.1.tgz","integrity":"sha512-VOpBLJ3yWX6mkyj5p3MDZsK/4vJOGzJFw12hbJjfvUCkkX+dn0IFHm9W29ckG0ChCTanHoni26JbHnn4Mc32mQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBMouO0UPyIikweVjpfeMwrA/4WdTio2EG6qolDX+P8OAiEA/ZJrX9dCUK3YUjxEA47yqD8SDdLbu5dFcgrYWW1xkPI="}]}}},"readme":"# options-cache [![NPM version](https://badge.fury.io/js/options-cache.svg)](http://badge.fury.io/js/options-cache)\n\n> Simple API for managing options in JavaScript applications.\n\n## Install\n#### Install with [npm](npmjs.org)\n\n```bash\nnpm i options-cache --save\n```\n\n## API\n### [Options](index.js#L42)\n\nCreate a new instance of `Options`.\n\n* `options` **{Object}**: Initialize with default options.    \n\n**Example:**\n\n```js\nvar util = require('util');\nvar Options = require('options-cache');\n\nfunction App(options) {\n  Options.call(this, options);\n}\nutil.inherits(App, Options);\n\nApp.prototype.a = function(value) {\n  this.enable(value);\n};\n\nApp.prototype.b = function(value) {\n  if (this.enabled(value)) {\n    // do something\n  }\n};\n```\n\n### [.option](index.js#L62)\n\nSet or get an option.\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```js\napp.option('a', true);\napp.option('a');\n//=> true\n```\n\n### [.enabled](index.js#L96)\n\nCheck if `key` is enabled (truthy).\n\n* `key` **{String}**    \n* `returns`: {Boolean}  \n\n```js\napp.enabled('a');\n//=> false\n\napp.enable('a');\napp.enabled('a');\n//=> true\n```\n\n### [.disabled](index.js#L118)\n\nCheck if `key` is disabled (falsey).\n\n* `key` **{String}**    \n* `returns` **{Boolean}**: Returns true if `key` is disabled.  \n\n```js\napp.disabled('a');\n//=> true\n\napp.enable('a');\napp.disabled('a');\n//=> false\n```\n\n### [.enable](index.js#L137)\n\nEnable `key`.\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#L156)\n\nDisable `key`.\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## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2014 Jon Schlinkert, contributors.  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 11, 2014._","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"time":{"modified":"2022-06-23T01:22:09.557Z","created":"2014-08-09T11:38:26.004Z","0.1.0":"2014-08-09T11:38:26.004Z","0.1.1":"2014-08-09T11:39:23.612Z","0.1.2":"2014-08-09T20:33:41.386Z","0.2.0":"2014-08-10T21:06:17.704Z","0.2.1":"2014-08-14T19:58:20.256Z","0.3.0":"2014-10-11T23:21:46.409Z","0.3.1":"2014-10-11T23:27:37.092Z"},"homepage":"https://github.com/jonschlinkert/options-cache","keywords":["cache","config","define","disable","disabled","enable","enabled","extend","get","javascript","node.js","obj","object","opt","option","options","opts","set"],"repository":{"type":"git","url":"git://github.com/jonschlinkert/options-cache.git"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"bugs":{"url":"https://github.com/jonschlinkert/options-cache/issues"},"readmeFilename":"README.md"}