Skip to content

bitbybitco/configurable

Repository files navigation

travis build Dependency Status devDependency Status Codecov MIT License semantic-release

What is it?

Configuration mixin for composition pattern

How to use it?

Make something configurable:

const createConfigurable = require("@bitbybit/configurable");

// plain obj
var obj = {};
createConfigurable(obj);

// returns the obj itself
var obj = Configurable({});
.get(name)
.set(name, val)
.set(obj)
.enable(name)
.disable(name)
.enabled(name)
.disabled(name)