Stream
- http://brycebaril.github.io/streams2-presentation/
- https://github.com/substack/stream-handbook
- https://github.com/zoubin/streamify-your-node-program
Node Stream
升级版。
- 什么是流
- 为什么使用流
- Readable
- Writable
- objectMode
- highWaterMark
- Duplex和Transform
- pipe
- 实现自定义的流
- 创建各类stream的工具
- Browserify
- Gulp
- 附录
以下是 @wujohns 补充的
刚刚看到 — —|||,总共是三篇,由浅入深:
- 基础篇:http://tech.meituan.com/stream-basics.html
- 进阶篇:http://tech.meituan.com/stream-internals.html
- 实战篇:http://tech.meituan.com/stream-in-action.html
如果有对 browserify 感兴趣的小伙伴的话,这里有我写的一个插件 less-modulesify (https://www.npmjs.com/package/less-modulesify)...顺带的私货
全文完
欢迎关注我的公众号【node全栈】
node全栈.png
联系我,更多交流
xiaoweiquan.jpeg
@i5ing 刚刚看到 — —|||,总共是三篇,由浅入深: 基础篇:http://tech.meituan.com/stream-basics.html 进阶篇:http://tech.meituan.com/stream-internals.html 实战篇:http://tech.meituan.com/stream-in-action.html 如果有对 browserify 感兴趣的小伙伴的话,这里有我写的一个插件 less-modulesify (https://www.npmjs.com/package/less-modulesify)...顺带的私货
@i5ting 狼哥你这样说就太看轻java了,虽然早已不做java,但是java中的类InputStream在jdk1.4肯定就已经有了,如果没有记错甚至早至jdk1.2就已经有了,它是一个顶级的类,相当于nodejs中的Readable,FileInputStream之类的都是继承于它。想想就知道这么基础的功能怎么可能等到java8才有?而你说的java8的stream,其实是为了支持函数式编程而引入的,跟nodejs中的stream根本就是两回事。