(options, transformFn, flushFn)
| 240 | * @returns {import('readable-stream').Transform} |
| 241 | */ |
| 242 | export function objectTransform (options, transformFn, flushFn) { |
| 243 | const args = resolveArgs(options, transformFn, flushFn) |
| 244 | const t = new Transform({ objectMode: true, highWaterMark: 16, ...args.options }) |
| 245 | setupTransform(t, args.transform, args.flush) |
| 246 | return t |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * Build a reusable factory. The returned function works with or without |
no test coverage detected