docs: async function write(path, data) {
    if (!path) throw new Error('No path is given.')
    const er = erotic(true)
    const ws = createWriteStream(path)
    await new Promise((r, j) => {
      ws
        .on('error', (e) => {
          const err = er(e)
          j(err)
        })
        .on('close', r)
        .end(data)
    })
  }