code: function writeFileSync (filename, content, options) {
    if (typeof filename !== 'string') {
      throw new Error('path must be a string')
    }
  
    mkdirp.sync(path.dirname(filename))
    fs.writeFileSync(filename, content, options)
  }
docs: Synchronous write