Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streams v3 compat & add readable-stream #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
"transduce": "^0.8.0",
"transducers-js": "^0.4.158",
"transducers.js": "^0.3.1"
},
"dependencies": {
"readable-stream": "^2.3.5"
}
}
10 changes: 6 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
"use strict"
var stream = require('../'),
Readable = require('stream').Readable,
Writable = require('stream').Writable,
Readable = require('readable-stream').Readable,
Writable = require('readable-stream').Writable,
string = require('transduce/string'),
tap = require('transduce/transducers/tap'),
transduce = require('any-transduce'),
test = require('tape')

function readArray(source){
var read = new Readable()

function readArray(_source){
var source = _source.concat(null),
read = new Readable()
read._read = function(){
read.push(source.shift())
}
Expand Down
2 changes: 1 addition & 1 deletion transduce-stream.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict"
var util = require('util'),
Transform = require('stream').Transform
Transform = require('readable-stream').Transform

module.exports = TransduceStream

Expand Down