文件名称:obj-stream:轻量级对象流
文件大小:12KB
文件格式:ZIP
更新时间:2024-06-17 17:05:02
JavaScript
适用于NodeJS和浏览器的轻量级对象流库。 var stream = require ( "obj-stream" ) ; var stream = new stream . Stream ( ) ; stream . write ( { name : "obj" } ) ; // valid stream . write ( "blah" ) ; // invalid stream . end ( ) ; var readable = new stream . Readable ( [ { name : "obj" } ] ) ; readable . pipe ( new stream . Stream ( ) ) ; 可写stream.writable() 创建一个新的可写流 var writable = stream . writable ( ) ; writable.w
【文件预览】:
obj-stream-master
----.coveralls.yml(45B)
----lib()
--------readable.js(825B)
--------wrap.js(354B)
--------pipe.js(1KB)
--------stream.js(1KB)
--------writable.js(2KB)
--------index.js(405B)
--------through.js(2KB)
----.travis.yml(575B)
----gulpfile.js(3KB)
----test()
--------readable-stream-test.js(5KB)
--------through-test.js(2KB)
--------wrap-test.js(664B)
--------writable-stream-test.js(3KB)
--------stream-test.js(1KB)
----README.md(2KB)
----.gitignore(38B)
----package.json(1KB)