UNPKG
husk-through
Version:
latest (1.0.2)
1.0.2
Passthrough chunks via a function.
github.com/freeformsystems/husk
freeformsystems/husk
husk-through
/
index.js
15 lines
(11 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;