UNPKG

pino

Version:

super fast, all natural json logger

9 lines (7 loc) 223 B
import { createWriteStream } from 'node:fs' import { once } from 'node:events' export default async function run (opts) { const stream = createWriteStream(opts.destination) await once(stream, 'open') return stream }