@bitbybit/configurable

1.2.1 • Public • Published

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)

Package Sidebar

Install

npm i @bitbybit/configurable

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

113 kB

Total Files

33

Last publish

Collaborators

  • maurojunior