code: function debug () {
      let a = [...arguments]
      a = a.map(d => d instanceof Error ? d.toString() : d)
      write({
        debug: true,
        time: new Date().getTime(),
        name,
        data: a
      })
      if (rd) rd.apply(rd, arguments)
    }
docs: /* function processQue () {
  if (!qq) {
  dwait.push(processQue)
  qq = true
  }
  que.forEach(d => write(d))
  que = null
  }