UNPKG

signal-channel

Version:

A signal channel that empowers webrtc

41 lines (40 loc) 1.6 kB
{ "name": "write-stream", "version": "0.4.3", "description": "Base class for writable streams", "keywords": [], "author": { "name": "Raynos", "email": "raynos2@gmail.com" }, "repository": { "type": "git", "url": "git://github.com/Raynos/write-stream.git" }, "main": "index", "homepage": "https://github.com/Raynos/write-stream", "contributors": [ { "name": "Jake Verbaten" } ], "bugs": { "url": "https://github.com/Raynos/write-stream/issues", "email": "raynos2@gmail.com" }, "dependencies": { "readable-stream": "~0.0.2" }, "devDependencies": {}, "licenses": [ { "type": "MIT", "url": "http://github.com/Raynos/write-stream/raw/master/LICENSE" } ], "scripts": {}, "readme": "# write-stream\n\nBase class for writable streams\n\n## Example array\n\n```\nvar toArray = require(\"write-stream\").toArray\n , array = []\n , stream = toArray(array, function end() {\n /* never called as process.stdin does not end */\n })\n\nprocess.stdin.pipe(stream)\n\nsetInterval(function () {\n // peek at the buffered array of chunks from stdin every second\n console.log(array)\n}, 1000)\n```\n\n## Example function\n\n```\nvar WriteStream = require(\"write-stream\")\n , stream = WriteStream(function write(chunk) {\n // chunks from stdin\n })\n\nprocess.stdin.pipe(stream)\n```\n\n## Installation\n\n`npm install write-stream`\n\n## Contributors\n\n - Raynos\n\n## MIT Licenced", "readmeFilename": "README.md", "_id": "write-stream@0.4.3", "_from": "write-stream" }