@bitbybit/configurable

Configuration mixin for composition pattern

Usage no npm install needed!

<script type="module">
  import bitbybitConfigurable from 'https://cdn.skypack.dev/@bitbybit/configurable';
</script>

README

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)