Jxck/stream
port of Node.js standard stream library for browser
{ "createdAt": "2011-12-26T09:40:09Z", "defaultBranch": "master", "description": "port of Node.js standard stream library for browser", "fullName": "Jxck/stream", "homepage": "", "language": "JavaScript", "name": "stream", "pushedAt": "2015-09-09T04:56:40Z", "stargazersCount": 10, "topics": [], "updatedAt": "2020-04-29T16:31:18Z", "url": "https://github.com/Jxck/stream"}CAUTION: no plan to support node.js v4.0. and also this project stopped maintaining now, and will end of life at 2015/10. use browserify instead.
stream.js
Section titled “stream.js”stream.js is a port of the Node.js standard stream library for the browser. The original code and tests are from Node.js, and have been modified to be browser compatible.
You can use Stream on both sides (server-side and client-side) if you use this.
run the same code on both sides
Section titled “run the same code on both sides”You can use the Stream of Node.js on Browser. And same code can be running on both sides :)
how to use
Section titled “how to use”<script unsrc="lib/event.js"></script><script unsrc="stream.js"></script><script unsrc="path/to/your/code.js"></script>stream.js dependes on [events.js](https://github.com/Jxck/events))
running test of this library
Section titled “running test of this library”browser
Section titled “browser”open test/index.html in your browser,
and see the console.
(it depends on assert)
node.js
Section titled “node.js”> cd test> ./runtest.shlicense
Section titled “license”MIT (same as Node.js)