code: function write(filepath, contents) {
    return mkdirp(path.dirname(filepath)).then(() => {
      return writeFile(filepath, contents);
    });
  }
docs: Write `contents` to path at `filepath`
  @param {String} filepath
  @param {String} contents
  @return {Promise}