0.1.1 • Published 11 years ago

array-stream v0.1.1

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

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