codereivew

This commit is contained in:
2025-04-17 12:00:31 +09:00
parent cd79947b97
commit b9eb46a2fb
56 changed files with 475966 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
'use strict'
const pino = require('./pino')
const { once } = require('events')
module.exports = async function (opts = {}) {
const destOpts = Object.assign({}, opts, { dest: opts.destination || 1, sync: false })
delete destOpts.destination
const destination = pino.destination(destOpts)
await once(destination, 'ready')
return destination
}