nconf-level
v0.1.1
Published
nconf configuration leveldb backend
Downloads
7
Readme
nconf-level
A LevelDB store for nconf
Installation
Installing npm (node package manager)
$ curl http://npmjs.org/install.sh | sh
Installing nconf-level
$ [sudo] npm install https://github.com/abec/nconf-level
Usage
The store provided by nconf-level
will persist all of your configuration settings to a LevelDB directory.
var nconf = require('nconf');
require('nconf-level')(nconf);
nconf.use('level', { path: '/tmp/test.leveldb' });
nconf.set('foo', 'bar');
nconf.get('foo'); // returns 'bar'