MCPcopy
hub / github.com/rvagg/through2 / objectTransform

Function objectTransform

through2.js:242–247  ·  view source on GitHub ↗
(options, transformFn, flushFn)

Source from the content-addressed store, hash-verified

240 * @returns {import('readable-stream').Transform}
241 */
242export 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

Callers 13

example-ndjson.jsFile · 0.90
asyncgenOneToOneFunction · 0.90
asyncgenFanOutFunction · 0.90
asyncgenFilterFunction · 0.90
asyncgenWithClassicFlushFunction · 0.90
asyncgenThrownPropagatesFunction · 0.90
asyncgenDestroyMidStreamFunction · 0.90

Calls 2

resolveArgsFunction · 0.85
setupTransformFunction · 0.85

Tested by

no test coverage detected