0.1.1 • Published 8 years ago

nconf-level v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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'