Skip to content
No description or website provided.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
files
slides
streams
.gitignore
LICENSE
README.md
console-logger-example.js
data-collector-example.js
file-logger-example.js
for-humans.js
gzipper-example1.js
gzipper-example2.js
upload-example-form.html
upload-example1.js
upload-example2.js

README.md

For my NodeConf 2012 talk, I put together some simple custom streams to show the power of the Stream API.

Custom Streams

Collector

A stream that collects data into memory. The data can be retrieved along with the number of bytes written. It is a read-write stream, so data will also be passed through.

LogStream

A stream that simply logs any data input to the console. It is a read- write stream, so data will also be passed through.

FileLogStream

A stream that takes a file path and logs any data input to that file. It is a read-write stream, so data will also be passed through.

GZipStream

A stream that runs incoming data through the gzip deflate algorithm and outputs compressed data.

Something went wrong with that request. Please try again.