summaryrefslogtreecommitdiffstats
path: root/node_modules/stdout-stream
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/stdout-stream
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/stdout-stream')
-rw-r--r--node_modules/stdout-stream/.travis.yml6
-rw-r--r--node_modules/stdout-stream/LICENSE20
-rw-r--r--node_modules/stdout-stream/README.md45
-rw-r--r--node_modules/stdout-stream/index.js53
-rw-r--r--node_modules/stdout-stream/package.json48
-rw-r--r--node_modules/stdout-stream/test/fixtures/end.js8
-rw-r--r--node_modules/stdout-stream/test/fixtures/hello-world.js4
-rw-r--r--node_modules/stdout-stream/test/index.js33
8 files changed, 0 insertions, 217 deletions
diff --git a/node_modules/stdout-stream/.travis.yml b/node_modules/stdout-stream/.travis.yml
deleted file mode 100644
index 4ff8a05..0000000
--- a/node_modules/stdout-stream/.travis.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-language: node_js
-node_js:
- - "0.8"
- - "0.10"
-
-script: "npm test"
diff --git a/node_modules/stdout-stream/LICENSE b/node_modules/stdout-stream/LICENSE
deleted file mode 100644
index 4b30ed5..0000000
--- a/node_modules/stdout-stream/LICENSE
+++ /dev/null
@@ -1,20 +0,0 @@
-Copyright 2013 Mathias Buus
-
-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/stdout-stream/README.md b/node_modules/stdout-stream/README.md
deleted file mode 100644
index ede4fcd..0000000
--- a/node_modules/stdout-stream/README.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# stdout-stream
-
-Non-blocking stdout stream
-
- npm install stdout-stream
-
-[![build status](http://img.shields.io/travis/mafintosh/level-filesystem.svg?style=flat)](http://travis-ci.org/mafintosh/stdout-stream)
-![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)
-
-
-## Rant
-
-Try saving this example as `example.js`
-
-``` js
-console.error('start');
-process.stdout.write(new Buffer(1024*1024));
-console.error('end');
-```
-
-And run the following program
-
-```
-node example.js | sleep 1000
-```
-
-The program will never print `end` since stdout in node currently is blocking - even when its being piped (!).
-
-stdout-stream tries to fix this by being a stream that writes to stdout but never blocks
-
-## Usage
-
-``` js
-var stdout = require('stdout-stream');
-
-stdout.write('hello\n'); // write should NEVER block
-stdout.write('non-blocking\n')
-stdout.write('world\n');
-```
-
-`stdout-stream` should behave in the same way as `process.stdout` (i.e. do not end on pipe etc)
-
-## License
-
-MIT
diff --git a/node_modules/stdout-stream/index.js b/node_modules/stdout-stream/index.js
deleted file mode 100644
index a8ab752..0000000
--- a/node_modules/stdout-stream/index.js
+++ /dev/null
@@ -1,53 +0,0 @@
-var fs = require('fs');
-var Writable = require('readable-stream/writable');
-
-var exists = function(path) {
- try {
- return fs.existsSync(path);
- } catch (err) {
- return false;
- }
-};
-
-module.exports = function() {
- var s = new Writable({highWaterMark:0});
-
- var cb;
- var data;
- var tries = 0;
- var offset = 0;
-
- var write = function() {
- fs.write(1, data, offset, data.length - offset, null, onwrite);
- };
-
- var onwrite = function(err, written) {
- if (err && err.code === 'EPIPE') return cb()
- if (err && err.code === 'EAGAIN' && tries++ < 30) return setTimeout(write, 10);
- if (err) return cb(err);
-
- tries = 0;
- if (offset + written >= data.length) return cb();
-
- offset += written;
- write();
- };
-
- s._write = function(_data, enc, _cb) {
- offset = 0;
- cb = _cb;
- data = _data;
- write();
- };
-
- s._isStdio = true;
- s.isTTY = process.stdout.isTTY;
-
- s.on('finish', function() {
- fs.close(1, function(err) {
- if (err) s.emit('error', err);
- });
- });
-
- return s;
-}();
diff --git a/node_modules/stdout-stream/package.json b/node_modules/stdout-stream/package.json
deleted file mode 100644
index b34166e..0000000
--- a/node_modules/stdout-stream/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "_from": "stdout-stream@^1.4.0",
- "_id": "stdout-stream@1.4.1",
- "_inBundle": false,
- "_integrity": "sha512-j4emi03KXqJWcIeF8eIXkjMFN1Cmb8gUlDYGeBALLPo5qdyTfA9bOtl8m33lRoC+vFMkP3gl0WsDr6+gzxbbTA==",
- "_location": "/stdout-stream",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "stdout-stream@^1.4.0",
- "name": "stdout-stream",
- "escapedName": "stdout-stream",
- "rawSpec": "^1.4.0",
- "saveSpec": null,
- "fetchSpec": "^1.4.0"
- },
- "_requiredBy": [
- "/node-sass"
- ],
- "_resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.1.tgz",
- "_shasum": "5ac174cdd5cd726104aa0c0b2bd83815d8d535de",
- "_spec": "stdout-stream@^1.4.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/node-sass",
- "bugs": {
- "url": "https://github.com/mafintosh/stdout-stream/issues"
- },
- "bundleDependencies": false,
- "dependencies": {
- "readable-stream": "^2.0.1"
- },
- "deprecated": false,
- "description": "Non-blocking stdout stream",
- "devDependencies": {
- "tape": "~2.12.3"
- },
- "homepage": "https://github.com/mafintosh/stdout-stream#readme",
- "license": "MIT",
- "name": "stdout-stream",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/mafintosh/stdout-stream.git"
- },
- "scripts": {
- "test": "tape test/index.js"
- },
- "version": "1.4.1"
-}
diff --git a/node_modules/stdout-stream/test/fixtures/end.js b/node_modules/stdout-stream/test/fixtures/end.js
deleted file mode 100644
index cdfeba3..0000000
--- a/node_modules/stdout-stream/test/fixtures/end.js
+++ /dev/null
@@ -1,8 +0,0 @@
-var stdout = require('../../');
-
-stdout.write('stdout');
-stdout.end(function() {
- setTimeout(function() {
- process.exit(0);
- }, 10);
-}); \ No newline at end of file
diff --git a/node_modules/stdout-stream/test/fixtures/hello-world.js b/node_modules/stdout-stream/test/fixtures/hello-world.js
deleted file mode 100644
index 096ee27..0000000
--- a/node_modules/stdout-stream/test/fixtures/hello-world.js
+++ /dev/null
@@ -1,4 +0,0 @@
-var stdout = require('../../');
-
-stdout.write('hello\n');
-stdout.write('world\n'); \ No newline at end of file
diff --git a/node_modules/stdout-stream/test/index.js b/node_modules/stdout-stream/test/index.js
deleted file mode 100644
index d26d079..0000000
--- a/node_modules/stdout-stream/test/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var tape = require('tape');
-var proc = require('child_process');
-var path = require('path');
-
-tape('print to stdout', function(t) {
- proc.exec('"'+process.execPath+'" '+path.join(__dirname,'fixtures','hello-world.js'), function(err, stdout) {
- t.ok(!err);
- t.same(stdout,'hello\nworld\n');
- t.end();
- });
-});
-
-tape('end stdout', function(t) {
- var ch = proc.exec('"'+process.execPath+'" '+path.join(__dirname,'fixtures','end.js'));
- var buf = [];
- var processOnExit = false;
- var stdoutOnEnd = false;
-
- ch.stdout.on('data', function(data) {
- buf.push(data);
- });
- ch.stdout.on('end', function() {
- t.same(Buffer.concat(buf).toString(), 'stdout');
- t.ok(!processOnExit);
- stdoutOnEnd = true;
- });
- ch.on('exit', function(code) {
- processOnExit = true;
- t.ok(stdoutOnEnd);
- t.same(code, 0);
- t.end();
- });
-}); \ No newline at end of file