array-stream

0.1.1 • Public • Published

array-stream

build status

browser support

Convert a stream to an array

Example

var toArray = require('array-stream')
var s = toArray(function (list) {
    assert.deepEqual(list, [
        "one"
        , "two"
        , "three"
        , "four"
        , "five"
    ])
 
    assert.end()
})
 
s.write("one\ntw")
s.write("o\nthree\nfo")
s.write("u")
s.write("r\nf")
s.write("iv")
s.end("e")

Installation

npm install array-stream

Contributors

  • Raynos

MIT Licenced

Readme

Keywords

none

Package Sidebar

Install

npm i array-stream

Weekly Downloads

3

Version

0.1.1

License

none

Last publish

Collaborators

  • raynos