stdout-stream

WebJar for stdout-stream

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

stdout-stream
Последняя версия

Последняя версия

1.4.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

stdout-stream
WebJar for stdout-stream
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mafintosh/stdout-stream

Скачать stdout-stream

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/stdout-stream/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>stdout-stream</artifactId>
    <version>1.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/stdout-stream/
implementation 'org.webjars.npm:stdout-stream:1.4.1'
// https://jarcasting.com/artifacts/org.webjars.npm/stdout-stream/
implementation ("org.webjars.npm:stdout-stream:1.4.1")
'org.webjars.npm:stdout-stream:jar:1.4.1'
<dependency org="org.webjars.npm" name="stdout-stream" rev="1.4.1">
  <artifact name="stdout-stream" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='stdout-stream', version='1.4.1')
)
libraryDependencies += "org.webjars.npm" % "stdout-stream" % "1.4.1"
[org.webjars.npm/stdout-stream "1.4.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : readable-stream jar [2.0.1,3)

Модули Проекта

Данный проект не имеет модулей.

stdout-stream

Non-blocking stdout stream

npm install stdout-stream

build status dat

Rant

Try saving this example as example.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

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

Версии библиотеки

Версия
1.4.1
1.4.0