Node fork to make it suitable for embedding in Electron
Перейти к файлу
isaacs 0f8de5e1f9 stream: Simplify flowing, passive data listening
Closes #5860

In streams2, there is an "old mode" for compatibility.  Once switched
into this mode, there is no going back.

With this change, there is a "flowing mode" and a "paused mode".  If you
add a data listener, then this will start the flow of data.  However,
hitting the `pause()` method will switch *back* into a non-flowing mode,
where the `read()` method will pull data out.

Every time `read()` returns a data chunk, it also emits a `data` event.
In this way, a passive data listener can be added, and the stream passed
off to some other reader, for use with progress bars and the like.

There is no API change beyond this added flexibility.
2013-07-22 16:17:30 -07:00
benchmark bench: fix up benchmarks after internal api change 2013-07-20 12:13:54 +02:00
deps v8: reapply floating patches 2013-07-22 15:56:44 -07:00
doc stream: Simplify flowing, passive data listening 2013-07-22 16:17:30 -07:00
lib stream: Simplify flowing, passive data listening 2013-07-22 16:17:30 -07:00
src src: fix windows build error from 221c689e 2013-07-20 21:45:24 +02:00
test stream: Simplify flowing, passive data listening 2013-07-22 16:17:30 -07:00
tools tools: make check-imports.sh work on bsd-likes 2013-07-19 22:56:28 +02:00
.gitattributes Explicitly disable cr/lf conversion for test fixtures 2011-08-10 19:59:37 +02:00
.gitignore tools: Add wrk for benchmarking http servers 2013-02-19 17:16:18 -08:00
.mailmap Update .mailmap and AUTHORS 2013-03-19 20:07:38 +01:00
AUTHORS 2013.07.12, Version 0.11.4 (Unstable) 2013-07-12 13:51:04 -07:00
BSDmakefile Tell BSD users to run `gmake` instead. 2011-07-11 14:17:23 +02:00
CONTRIBUTING.md doc: clarify subsystems in CONTRIBUTING.md 2013-05-14 12:31:38 +02:00
ChangeLog 2013.07.12, Version 0.11.4 (Unstable) 2013-07-12 13:51:04 -07:00
LICENSE src: replace ngx-queue.h with queue.h 2013-06-04 12:22:03 +02:00
Makefile src: update v8 build requirements 2013-07-22 15:53:43 -07:00
README.md doc: the build requires gcc 4.2 or newer 2013-05-22 13:47:29 +02:00
android-configure build: add android support 2013-06-17 17:21:56 +02:00
common.gypi build: don't enable --gc-sections on sunos 2013-07-06 18:49:02 +02:00
configure build: remove --unsafe-optimizations flag 2013-07-06 16:53:07 +02:00
node.gyp src: add libuv bindings module 2013-07-20 12:04:35 +02:00
vcbuild.bat build: vcbuild.bat fix for Visual Studio 2012 2013-05-03 11:32:32 +02:00

README.md

Evented I/O for V8 javascript. Build Status

To build:

Prerequisites (Unix only):

* GCC 4.2 or newer
* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Unix/Macintosh:

./configure
make
make install

If your python binary is in a non-standard location or has a non-standard name, run the following instead:

export PYTHON=/path/to/python
$PYTHON ./configure
make
make install

Windows:

vcbuild.bat

To run the tests:

Unix/Macintosh:

make test

Windows:

vcbuild.bat test

To build the documentation:

make doc

To read the documentation:

man doc/node.1

Resources for Newcomers