streamify-your-node-program icon indicating copy to clipboard operation
streamify-your-node-program copied to clipboard

对Node.js中 stream模块的学习积累和理解

Node Stream

精华版

目录

  • 什么是流
  • 为什么使用流
  • Readable
    • 如何创建
      • end事件
    • 如何使用
      • flowing模式
      • paused模式
  • Writable
    • 创建与使用
    • finish事件
  • objectMode
    • 对Readable的影响
    • 对Writable的影响
    • 什么时候用objectMode
  • highWaterMark
    • Readable中的缓存
    • Writable中的缓存
  • Duplex和Transform
    • Duplex
    • Transform
    • Transform与Duplex比较
  • pipe
    • pipe的使用
    • 从push到pull
    • pipeline
  • 实现自定义的流
    • Readable
    • Writable
    • Transform
  • 创建各类stream的工具
    • through2
    • merge-stream
    • concat-stream
    • sink-transform
    • duplexer2
    • stream-combiner2
    • stream-splicer
    • labeled-stream-splicer
  • Browserify
    • 需求
    • pipeline设计
    • 插件机制
    • Transform机制
  • Gulp
  • 附录
    • Node实现的CommonJS规范