UNPKG

husk-through

Version:

Passthrough chunks via a function.

15 lines (11 loc) 269 B
var ThroughStream = require('through-flow'); function stream(method) { return new ThroughStream(method); } function plugin() { this.through = function through(method) { return this.fuse(stream(method)); } } stream.plugin = plugin; module.exports = stream;