├── .eslintrc ├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── docs ├── browserify.md ├── duplex-and-transform.md ├── gulp.md ├── highWaterMark.md ├── implement-streams.md ├── node-module.md ├── objectMode.md ├── pipe.md ├── readable.md ├── tools.md ├── what-is-stream.md ├── when-to-use-stream.md └── writable.md ├── example ├── browserify │ ├── build-transform.js │ ├── build.js │ ├── comment.js │ ├── log.js │ └── src │ │ ├── main.js │ │ └── math.js ├── createReadStream.js ├── event-end.js ├── event-finish.js ├── flowing-mode-async.js ├── flowing-mode.js ├── gulp │ ├── fixtures │ │ ├── foo.md │ │ └── gulpfile.js │ └── shasum.js ├── highWaterMark-async.js ├── highWaterMark.js ├── implement │ ├── duplex.js │ ├── readable.js │ ├── transform.js │ └── writable.js ├── objectMode │ ├── empty-string-non-objectMode.js │ ├── empty-string-objectMode.js │ ├── readable-obj.js │ ├── readable.js │ ├── writable-objectMode.js │ └── writable.js ├── parseUA.js ├── paused-mode-single-byte.js ├── paused-mode.js ├── pipeline.js ├── principle │ ├── _read.js │ ├── back-pressure │ │ ├── pipe.js │ │ └── pull-stream.js │ ├── encoding │ │ ├── default.js │ │ ├── encoding.js │ │ ├── objectMode.js │ │ ├── options.js │ │ ├── output.js │ │ ├── writable-default.js │ │ └── writable-encoding.js │ ├── multi-push.js │ ├── no-_read.js │ ├── paused.js │ ├── push-async.js │ ├── push-empty.js │ ├── push.js │ ├── read-async.js │ ├── read.js │ ├── readable-flowing.js │ └── readable.js ├── readFile.js ├── readable-pipe-writable.js ├── readable-with-writable.js ├── reverse.js ├── rotate.js ├── tools │ ├── concat-stream.js │ ├── duplexer2.js │ ├── labeled-stream-splicer.js │ ├── logger-splicer.js │ ├── logger.js │ ├── merge-stream-async.js │ ├── merge-stream.js │ ├── parse.js │ ├── sink-transform.js │ └── stream-splicer.js └── transform.js └── package.json /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/README.md -------------------------------------------------------------------------------- /docs/browserify.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/browserify.md -------------------------------------------------------------------------------- /docs/duplex-and-transform.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/duplex-and-transform.md -------------------------------------------------------------------------------- /docs/gulp.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/gulp.md -------------------------------------------------------------------------------- /docs/highWaterMark.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/highWaterMark.md -------------------------------------------------------------------------------- /docs/implement-streams.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/implement-streams.md -------------------------------------------------------------------------------- /docs/node-module.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/node-module.md -------------------------------------------------------------------------------- /docs/objectMode.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/objectMode.md -------------------------------------------------------------------------------- /docs/pipe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/pipe.md -------------------------------------------------------------------------------- /docs/readable.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/readable.md -------------------------------------------------------------------------------- /docs/tools.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/tools.md -------------------------------------------------------------------------------- /docs/what-is-stream.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/what-is-stream.md -------------------------------------------------------------------------------- /docs/when-to-use-stream.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/when-to-use-stream.md -------------------------------------------------------------------------------- /docs/writable.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/docs/writable.md -------------------------------------------------------------------------------- /example/browserify/build-transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/browserify/build-transform.js -------------------------------------------------------------------------------- /example/browserify/build.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/browserify/build.js -------------------------------------------------------------------------------- /example/browserify/comment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/browserify/comment.js -------------------------------------------------------------------------------- /example/browserify/log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/browserify/log.js -------------------------------------------------------------------------------- /example/browserify/src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/browserify/src/main.js -------------------------------------------------------------------------------- /example/browserify/src/math.js: -------------------------------------------------------------------------------- 1 | exports.abs = function (v) { 2 | return v < 0 ? -v : v 3 | } 4 | 5 | -------------------------------------------------------------------------------- /example/createReadStream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/createReadStream.js -------------------------------------------------------------------------------- /example/event-end.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/event-end.js -------------------------------------------------------------------------------- /example/event-finish.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/event-finish.js -------------------------------------------------------------------------------- /example/flowing-mode-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/flowing-mode-async.js -------------------------------------------------------------------------------- /example/flowing-mode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/flowing-mode.js -------------------------------------------------------------------------------- /example/gulp/fixtures/foo.md: -------------------------------------------------------------------------------- 1 | # foo 2 | 3 | -------------------------------------------------------------------------------- /example/gulp/fixtures/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/gulp/fixtures/gulpfile.js -------------------------------------------------------------------------------- /example/gulp/shasum.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/gulp/shasum.js -------------------------------------------------------------------------------- /example/highWaterMark-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/highWaterMark-async.js -------------------------------------------------------------------------------- /example/highWaterMark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/highWaterMark.js -------------------------------------------------------------------------------- /example/implement/duplex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/implement/duplex.js -------------------------------------------------------------------------------- /example/implement/readable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/implement/readable.js -------------------------------------------------------------------------------- /example/implement/transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/implement/transform.js -------------------------------------------------------------------------------- /example/implement/writable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/implement/writable.js -------------------------------------------------------------------------------- /example/objectMode/empty-string-non-objectMode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/objectMode/empty-string-non-objectMode.js -------------------------------------------------------------------------------- /example/objectMode/empty-string-objectMode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/objectMode/empty-string-objectMode.js -------------------------------------------------------------------------------- /example/objectMode/readable-obj.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/objectMode/readable-obj.js -------------------------------------------------------------------------------- /example/objectMode/readable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/objectMode/readable.js -------------------------------------------------------------------------------- /example/objectMode/writable-objectMode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/objectMode/writable-objectMode.js -------------------------------------------------------------------------------- /example/objectMode/writable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/objectMode/writable.js -------------------------------------------------------------------------------- /example/parseUA.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/parseUA.js -------------------------------------------------------------------------------- /example/paused-mode-single-byte.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/paused-mode-single-byte.js -------------------------------------------------------------------------------- /example/paused-mode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/paused-mode.js -------------------------------------------------------------------------------- /example/pipeline.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/pipeline.js -------------------------------------------------------------------------------- /example/principle/_read.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/_read.js -------------------------------------------------------------------------------- /example/principle/back-pressure/pipe.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/back-pressure/pipe.js -------------------------------------------------------------------------------- /example/principle/back-pressure/pull-stream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/back-pressure/pull-stream.js -------------------------------------------------------------------------------- /example/principle/encoding/default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/default.js -------------------------------------------------------------------------------- /example/principle/encoding/encoding.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/encoding.js -------------------------------------------------------------------------------- /example/principle/encoding/objectMode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/objectMode.js -------------------------------------------------------------------------------- /example/principle/encoding/options.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/options.js -------------------------------------------------------------------------------- /example/principle/encoding/output.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/output.js -------------------------------------------------------------------------------- /example/principle/encoding/writable-default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/writable-default.js -------------------------------------------------------------------------------- /example/principle/encoding/writable-encoding.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/encoding/writable-encoding.js -------------------------------------------------------------------------------- /example/principle/multi-push.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/multi-push.js -------------------------------------------------------------------------------- /example/principle/no-_read.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/no-_read.js -------------------------------------------------------------------------------- /example/principle/paused.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/paused.js -------------------------------------------------------------------------------- /example/principle/push-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/push-async.js -------------------------------------------------------------------------------- /example/principle/push-empty.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/push-empty.js -------------------------------------------------------------------------------- /example/principle/push.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/push.js -------------------------------------------------------------------------------- /example/principle/read-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/read-async.js -------------------------------------------------------------------------------- /example/principle/read.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/read.js -------------------------------------------------------------------------------- /example/principle/readable-flowing.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/readable-flowing.js -------------------------------------------------------------------------------- /example/principle/readable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/principle/readable.js -------------------------------------------------------------------------------- /example/readFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/readFile.js -------------------------------------------------------------------------------- /example/readable-pipe-writable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/readable-pipe-writable.js -------------------------------------------------------------------------------- /example/readable-with-writable.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/readable-with-writable.js -------------------------------------------------------------------------------- /example/reverse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/reverse.js -------------------------------------------------------------------------------- /example/rotate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/rotate.js -------------------------------------------------------------------------------- /example/tools/concat-stream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/concat-stream.js -------------------------------------------------------------------------------- /example/tools/duplexer2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/duplexer2.js -------------------------------------------------------------------------------- /example/tools/labeled-stream-splicer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/labeled-stream-splicer.js -------------------------------------------------------------------------------- /example/tools/logger-splicer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/logger-splicer.js -------------------------------------------------------------------------------- /example/tools/logger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/logger.js -------------------------------------------------------------------------------- /example/tools/merge-stream-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/merge-stream-async.js -------------------------------------------------------------------------------- /example/tools/merge-stream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/merge-stream.js -------------------------------------------------------------------------------- /example/tools/parse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/parse.js -------------------------------------------------------------------------------- /example/tools/sink-transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/sink-transform.js -------------------------------------------------------------------------------- /example/tools/stream-splicer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/tools/stream-splicer.js -------------------------------------------------------------------------------- /example/transform.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/example/transform.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zoubin/streamify-your-node-program/HEAD/package.json --------------------------------------------------------------------------------