event-stream
Advanced tools
Comparing version 3.0.6 to 3.0.7
32
index.js
@@ -339,36 +339,4 @@ //filter will reemit the data if cb(err,pass) pass is truthy | ||
// | ||
// helper to make your module into a unix pipe | ||
// simply add | ||
// | ||
// if(!module.parent) | ||
// require('event-stream').pipable(asyncFunctionOrStreams) | ||
// | ||
// asyncFunctionOrStreams may be one or more Streams or if it is a function, | ||
// it will be automatically wrapped in es.map | ||
// | ||
// then pipe stuff into from the command line! | ||
// | ||
// curl registry.npmjs.org/event-stream | node hello-pipeable.js | grep whatever | ||
// | ||
// etc! | ||
// | ||
// also, start pipeable running as a server! | ||
// | ||
// > node hello-pipeable.js --port 44444 | ||
// | ||
var setup = function (args) { | ||
return args.map(function (f) { | ||
var x = f() | ||
if('function' === typeof x) | ||
return es.map(x) | ||
return x | ||
}) | ||
} | ||
es.pipeable = function () { | ||
console.error('warn: event-stream. I have decided that pipeable is a kitchen-sick and will remove soon if no objections') | ||
console.error('please post an issue if you actually use this. -- dominictarr') | ||
throw new Error('[EVENT-STREAM] es.pipeable is deprecated') | ||
} |
{ | ||
"name": "event-stream", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "construct pipes of streams of events", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/dominictarr/event-stream", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40514
1086