@bitbybit/configurable
v1.2.1
Published
Configuration mixin for composition pattern
Downloads
7
Maintainers
Readme
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)