## Example app Use options-cache in your javascript application: ```js var util = require('util'); var Options = require('options-cache'); function App(options) { Options.call(this, options); this.init(); } util.inherits(App, Options); App.prototype.init = function() { this.option('cwd', process.cwd()); this.option('foo', 'bar'); }; App.prototype.a = function(value) { this.enable(value); }; App.prototype.b = function(value) { if (this.enabled(value)) { // do something } else { // do something else } }; ``` ## API {%= apidocs("index.js") %} ## Release history ### v4.0.0 **Breaking changes** - `.option` method no longer takes a list or array of objects - `.mergeOptions` was removed