Package Exports
- base-options
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (base-options) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
base-options 
Adds an
option
method to base-methods.
Install
Install with npm
$ npm i base-options --save
Usage
var Base = require('base-methods');
var option = require('base-options');
// create your application and inherit `Base`
function App() {
Base.call(this);
}
Base.extend(App);
var app = new App();
// add the `option` method to `App`
app.mixin('option', option);
// set/get options
app.option('foo', 'bar');
console.log(app.options);
//=> {foo: 'bar'}
Related projects
- base-data: adds a
data
method to base-methods. | homepage - base-methods: Starter for creating a node.js application with a handful of common methods, like
set
,get
,… more | homepage - class-utils: Utils for working with JavaScript classes and prototype methods. | homepage
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Jon Schlinkert
License
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on October 02, 2015.