1.2.1 • Published 5 years ago

@bitbybit/configurable v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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)