0.1.11 • Published 10 years ago

utils-config v0.1.11

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

utils-config

lazy object maintenance

install

$ npm install utils-config

usage

var config = require('utils-config');
var proto = {};
var init = {
  hey : 'want something'
}

proto.config = config(init);
proto.config();
// { hey : 'want something'}

proto.config('hey', 'not any more');
// 'not any more'

proto.config().hey = 'come on!'
// 'come on!'

proto.config();
// { hey : 'not any more'}

var clone = proto.config({ clone : true });
var fork  = proto.config({ fork : true });

fork('hey', 'ok, continue');
// 'ok, continue'
fork('hey');
// 'ok, continue'

proto.config();
// { hey : 'ok, continue' }

clone();
// { hey : 'not anymore' }

license

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago