Skip to content
Oeiuwq Faith Blog OpenSource Porfolio

Jxck/stream

port of Node.js standard stream library for browser

Jxck/stream.json
{
"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 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.

You can use the Stream of Node.js on Browser. And same code can be running on both sides :)

<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))

open test/index.html in your browser, and see the console. (it depends on assert)

Terminal window
> cd test
> ./runtest.sh

MIT (same as Node.js)