thr
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -7,5 +7,8 @@ /** | ||
module.exports = thru | ||
module.exports = function (fn,flush) { return new thr(fn, flush) } | ||
function thru(fn){ return new thr(fn) } | ||
function thr(fn){ this._transform = fn; Transform.call(this) } | ||
function thr(fn,flush){ | ||
if(flush) this._flush = flush | ||
this._transform = fn | ||
Transform.call(this) | ||
} |
{ | ||
"name": "thr", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "reduced overhead transform stream", | ||
@@ -5,0 +5,0 @@ "repository": { |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1006
11
0