dotfun

0.9.1 • Public • Published

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 });
...

Package Sidebar

Install

npm i dotfun

Weekly Downloads

2

Version

0.9.1

License

MIT

Last publish

Collaborators

  • mileszim