node/doc
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
..
about doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
api stream: Simplify flowing, passive data listening 2013-07-22 16:17:30 -07:00
api_assets doc: style the 'type' fields in API docs 2013-07-16 10:49:54 -07:00
blog Merge remote-tracking branch 'ry/v0.10' 2013-07-17 18:32:23 -07:00
community doc: Remove unnecessary sh script tags 2013-06-14 10:26:50 -07:00
download doc: Remove unnecessary sh script tags 2013-06-14 10:26:50 -07:00
images website: Sharpen and clean up download page more 2012-08-15 15:52:57 -07:00
logos doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
blog.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
changelog-foot.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
changelog-head.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
cla.html doc: Make the CLA more simple/sane 2012-09-27 13:25:55 -07:00
favicon.ico docs: fix favicon 2011-11-27 21:52:27 +01:00
full-white-stripe.jpg Use .jpg instead of .bmp for .msi 2012-01-10 14:26:22 -08:00
index.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
mac_osx_nodejs_installer_logo.png Improve OSX installer 2011-11-10 18:41:44 -08:00
node.1 node: Add --throw-deprecation 2013-03-06 11:44:29 -08:00
pipe.css doc: link joyent logo in website footer 2013-05-02 09:48:33 -07:00
robots.txt robots.txt 2012-02-14 14:34:43 -08:00
rss.xml blog: Generate RSS feeds 2012-06-22 08:49:20 -07:00
sh.css doc: use somewhat consistent styling for css assets 2012-08-23 17:54:12 +02:00
sh_javascript.min.js Man page generation. 2009-09-10 13:40:38 +02:00
sh_main.js Syntax highlighting for <tt> elements. 2009-09-23 16:58:28 +02:00
sh_vim-dark.css doc: use somewhat consistent styling for css assets 2012-08-23 17:54:12 +02:00
template.html doc: s/search.npmjs.org/npmjs.org/ 2013-05-09 15:15:39 -07:00
thin-white-stripe.jpg Use .jpg instead of .bmp for .msi 2012-01-10 14:26:22 -08:00
trademark-policy.pdf logo update 2011-07-11 08:30:37 -07:00
v0.4_announcement.html s/NPM/npm/ 2011-12-05 16:20:44 -08:00