Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dotfile

dscape43apache20.0.2

easy way to read and write json dotfiles agnostic of the os

dotfile, file, configuration, windows, linux, solaris

readme

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}