lib/record.js
function write(filename, data) {
  return Promise.fromCallback(function (done) {
    debug('write', filename);
    fs.writeFile(filename, data, done);
  });
}
function write(filename, data) {
  return Promise.fromCallback(function (done) {
    debug('write', filename);
    fs.writeFile(filename, data, done);
  });
}
function write ( filename , data ) { return Promise . fromCallback ( function ( done ) { debug ( 'write' , filename ) ; fs . writeFile ( filename , data , done ) ; } ) ; }
Write `data` to `filename`. Seems overkill to "promisify" this.
@param {String} filename
@param {String} data
@returns {Promise}
Write data to filename . Seems overkill to promisify this .