build/index.js
async function readBuffer(path) {
  const rs = createReadStream(path)
  /** @type {Buffer} */
  const res = await collect(rs, { binary: true })
  return res
}
async function readBuffer(path) {
  const rs = createReadStream(path)
  /** @type {Buffer} */
  const res = await collect(rs, { binary: true })
  return res
}
async function readBuffer ( path ) { const rs = createReadStream ( path ) /** @type {Buffer} */ const res = await collect ( rs , { binary : true } ) return res }
Read a file as a buffer.
@param {string} path The path to the file to read.
Read a file as a buffer .