nsconf

A simple config container allowing setting values for "namespaces" - dot separated property names. E.g set('foo.bar.baz', {}) will make { foo: { bar: { baz: {} } } }

npm install nsconf
4 downloads in the last week
9 downloads in the last month

NSConf

Namespaced configuration - read contents of a JSON-style javascript object using dotted namespaces. Supported methods:

var conf = new NSConf(intialValue); 
conf.get(namespace);
conf.set(namespace, value);
conf.extend(namespace, value);
conf.delete(namespace);

Namespace is string, passing '' returns the root object, passing non-string value results in exception.

npm loves you