index.js
function Dotfile(basename, options) {
  this.basename = basename;
  this.extname = '.json';
  this.dirname = (options && typeof options.dirname === 'string') ? options.dirname : Dotfile._tilde;
  this.filepath = path.join(this.dirname, '.' + this.basename + this.extname);
}
function Dotfile(basename, options) {
  this.basename = basename;
  this.extname = '.json';
  this.dirname = (options && typeof options.dirname === 'string') ? options.dirname : Dotfile._tilde;
  this.filepath = path.join(this.dirname, '.' + this.basename + this.extname);
}
function Dotfile ( basename , options ) { this . basename = basename ; this . extname = '.json' ; this . dirname = ( options && typeof options . dirname === 'string' ) ? options . dirname : Dotfile . _tilde ; this . filepath = path . join ( this . dirname , '.' + this . basename + this . extname ) ; }
Class to easily manage dot files

@param {String} basename What to name this dotfile

@author dscape
Class to easily manage dot files