package.json
3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"_args": [
[
{
"raw": "stdout-stream@^1.4.0",
"scope": null,
"escapedName": "stdout-stream",
"name": "stdout-stream",
"rawSpec": "^1.4.0",
"spec": ">=1.4.0 <2.0.0",
"type": "range"
},
"D:\\100-Projects\\100-AIAHTML5\\400-SOURCECODE\\AIAHTML5.Admin\\node_modules\\node-sass"
]
],
"_from": "stdout-stream@>=1.4.0 <2.0.0",
"_id": "stdout-stream@1.4.0",
"_inCache": true,
"_location": "/stdout-stream",
"_nodeVersion": "0.12.4",
"_npmUser": {
"name": "mafintosh",
"email": "mathiasbuus@gmail.com"
},
"_npmVersion": "2.10.1",
"_phantomChildren": {},
"_requested": {
"raw": "stdout-stream@^1.4.0",
"scope": null,
"escapedName": "stdout-stream",
"name": "stdout-stream",
"rawSpec": "^1.4.0",
"spec": ">=1.4.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/node-sass"
],
"_resolved": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz",
"_shasum": "a2c7c8587e54d9427ea9edb3ac3f2cd522df378b",
"_shrinkwrap": null,
"_spec": "stdout-stream@^1.4.0",
"_where": "D:\\100-Projects\\100-AIAHTML5\\400-SOURCECODE\\AIAHTML5.Admin\\node_modules\\node-sass",
"bugs": {
"url": "https://github.com/mafintosh/stdout-stream/issues"
},
"dependencies": {
"readable-stream": "^2.0.1"
},
"description": "Non-blocking stdout stream",
"devDependencies": {
"tape": "~2.12.3"
},
"directories": {},
"dist": {
"shasum": "a2c7c8587e54d9427ea9edb3ac3f2cd522df378b",
"tarball": "https://registry.npmjs.org/stdout-stream/-/stdout-stream-1.4.0.tgz"
},
"gitHead": "0a65e6cdfadc5043a627d6d074f4f064f5f2d188",
"homepage": "https://github.com/mafintosh/stdout-stream#readme",
"maintainers": [
{
"name": "mafintosh",
"email": "mathiasbuus@gmail.com"
}
],
"name": "stdout-stream",
"optionalDependencies": {},
"readme": "# stdout-stream\n\nNon-blocking stdout stream\n\n\tnpm install stdout-stream\n\n[](http://travis-ci.org/mafintosh/stdout-stream)\n\n\n\n## Rant\n\nTry saving this example as `example.js`\n\n``` js\nconsole.error('start');\nprocess.stdout.write(new Buffer(1024*1024));\nconsole.error('end');\n```\n\nAnd run the following program\n\n```\nnode example.js | sleep 1000\n```\n\nThe program will never print `end` since stdout in node currently is blocking - even when its being piped (!).\n\nstdout-stream tries to fix this by being a stream that writes to stdout but never blocks\n\n## Usage\n\n``` js\nvar stdout = require('stdout-stream');\n\nstdout.write('hello\\n'); // write should NEVER block\nstdout.write('non-blocking\\n')\nstdout.write('world\\n');\n```\n\n`stdout-stream` should behave in the same way as `process.stdout` (i.e. do not end on pipe etc)\n\n## License\n\nMIT\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/mafintosh/stdout-stream.git"
},
"scripts": {
"test": "tape test/index.js"
},
"version": "1.4.0"
}