4 ms·
Yes, and "the unix way" isn't just "everything's a stream", but rather "everything's a text stream." In that regard, node's version of "everything's a stream"
by hamburglar 13y ago
Yes, and "the unix way" isn't just "everything's a stream", but rather "everything's a text stream." In that regard, node's version of "everything's a stream" is actually a half-step up in abstraction.
- ixmatus 13y agoIsn't it more accurately a byte stream (I don't know, which is why I'm asking)?
- jkrems 13y agoThe default build-in streams found in the stdlib are byte streams (byte chunk streams, to be more exact). But user-level there are object streams as well, those are also mentioned in the docs: http://nodejs.org/api/stream.html#stream_object_mode http://nodejs.org/api/stream.html#stream_object_mode - so they are kind-of official.
- deleted 13y ago[deleted]