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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.9.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.9.1
    3
  • 0.9.0
    1
  • 0.0.0
    1

Package Sidebar

Install

npm i dotfun

Weekly Downloads

5

Version

0.9.1

License

MIT

Last publish

Collaborators

  • mileszim