0.9.1 • Published 9 years ago

dotfun v0.9.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

dotfun

Simple JSON dotfile implementation for node.js

Usage

var config = require('dotfile')('.mylocalrc');

config.set('something', 'configurable');
config.set('another', { key: 'value' });

config.get();
config.get('something');

If you want to set/get a dotfile from the user dir:

var config = require('dotfile')('.myuserrc', { home: true });
...