node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

dotfile

dotfile

simple way to save and read dotfiles

var dotfile = require('dotfile')('foo');
 
dotfile.exists(function (yesno) {
  dotfile.write({a: 1}, function (err) {
    dotfiles.read(function (err, disk) {
      console.log(disk);
    });
  });
});
// outputs {a: 1}