aboutsummaryrefslogtreecommitdiff
path: root/node_modules/stream-consume
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/stream-consume')
-rw-r--r--node_modules/stream-consume/README.md53
-rw-r--r--node_modules/stream-consume/index.js14
-rw-r--r--node_modules/stream-consume/package.json24
3 files changed, 0 insertions, 91 deletions
diff --git a/node_modules/stream-consume/README.md b/node_modules/stream-consume/README.md
deleted file mode 100644
index d7c9c909b..000000000
--- a/node_modules/stream-consume/README.md
+++ /dev/null
@@ -1,53 +0,0 @@
-# stream-consume
-
-A node module ensures a Readable stream continues flowing if it's not piped to
-another destination.
-
- npm install stream-consume
-
-## Usage
-
-Simply pass a stream to `stream-consume`.
-Both legacy streams and streams2 are supported.
-
-``` js
-var consume = require('stream-consume');
-
-consume(readableStream);
-```
-
-## Details
-
-Only Readable streams are processed (as determined by presence of `readable`
-property and a `resume` property that is a function). If called with anything
-else, it's a NOP.
-
-For a streams2 stream (as determined by presence of a `_readableState`
-property), nothing is done if the stream has already been piped to at least
-one other destination.
-
-`resume()` is used to cause the stream to continue flowing.
-
-## License
-
-The MIT License (MIT)
-
-Copyright (c) 2014 Aron Nopanen
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/stream-consume/index.js b/node_modules/stream-consume/index.js
deleted file mode 100644
index 122edb18a..000000000
--- a/node_modules/stream-consume/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = function(stream) {
- if (stream.readable && typeof stream.resume === 'function') {
- var state = stream._readableState;
- if (!state || state.pipesCount === 0) {
- // Either a classic stream or streams2 that's not piped to another destination
- try {
- stream.resume();
- } catch (err) {
- console.error("Got error: " + err);
- // If we can't, it's not worth dying over
- }
- }
- }
-};
diff --git a/node_modules/stream-consume/package.json b/node_modules/stream-consume/package.json
deleted file mode 100644
index 9d601be52..000000000
--- a/node_modules/stream-consume/package.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "name": "stream-consume",
- "version": "0.1.1",
- "description": "Consume a stream to ensure it keeps flowing",
- "main": "index.js",
- "scripts": {
- "test": "mocha"
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/aroneous/stream-consume.git"
- },
- "author": "Aron Nopanen",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/aroneous/stream-consume/issues"
- },
- "homepage": "https://github.com/aroneous/stream-consume",
- "devDependencies": {
- "mocha": "^1.20.1",
- "should": "^4.0.4",
- "through2": "^0.5.1"
- }
-}