Skip to main content
The Deno 2 Release Candidate is here
Learn more

through2

A tiny wrapper around Node.js streams.Transform (Streams2/3) to avoid explicit subclassing noise

Inspired by Dominic Tarr’s through in that it’s so much easier to make a stream out of a function than it is to set up the prototype chain properly: through(function (chunk) { … }).

fock by https://github.com/rvagg/through2

usage