From 774c289ba8581e4b358bd1b6415c3aefad97d282 Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 27 Feb 2012 11:09:34 -0800 Subject: [PATCH] doc refactor: streams --- doc/api/streams.markdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/streams.markdown b/doc/api/streams.markdown index e11f2dade7..b542de066e 100644 --- a/doc/api/streams.markdown +++ b/doc/api/streams.markdown @@ -1,4 +1,4 @@ -## Streams +# Streams A stream is an abstract interface implemented by various objects in Node. For example a request to an HTTP server is a stream, as is stdout. Streams @@ -6,6 +6,8 @@ are readable, writable, or both. All streams are instances of `EventEmitter`. ## Readable Stream + + A `Readable Stream` has the following methods, members, and events. ### Event: 'data' @@ -99,6 +101,8 @@ This keeps `process.stdout` open so that "Goodbye" can be written at the end. ## Writable Stream + + A `Writable Stream` has the following methods, members, and events. ### Event: 'drain'