lib/base.js
function writeOpts(opts) {
  return utils.extend({
    flags: opts.flags || (opts.overwrite ? 'w' : 'wx')
  }, opts);
}
function writeOpts(opts) {
  return utils.extend({
    flags: opts.flags || (opts.overwrite ? 'w' : 'wx')
  }, opts);
}
function writeOpts ( opts ) { return utils . extend ( { flags : opts . flags || ( opts . overwrite ? 'w' : 'wx' ) } , opts ) ; }
Normalize write options

@param {Object} `opts`
@return {Object}
Normalize write options