Package to replace
through2-map
Suggested replacement(s)
https://nodejs.org/api/stream.html#readablemapfn-options
import map from 'through2-map' // [!code --]
sourceStream.pipe(map.obj((chunk) => chunk.value)) // [!code --]
sourceStream.map((chunk) => chunk.value) // [!code ++]
or
import { pipeline } from 'node:stream/promises' // [!code ++]
import map from 'through2-map' // [!code --]
await pipeline(
sourceStream, // [!code --]
map.obj((chunk) => chunk.value), // [!code --]
sourceStream.map((chunk) => chunk.value), // [!code ++]
destinationStream
)
Manifest type
native (replaceable by a built-in platform feature)
Package to replace
through2-mapSuggested replacement(s)
https://nodejs.org/api/stream.html#readablemapfn-options
or
Manifest type
native (replaceable by a built-in platform feature)