Open kevzettler opened 10 years ago
the problem is that process.stdout
can only accept buffers or strings, and you are passing it objects.
if you do .on('data', console.log)
that will work, or else add a stream (like require('JSONStream').stringify()
that turns a stream of objects into a stream of bytes.
per the readme I should beable to pass a function to split which returns an object ( like
JSON.parse
) and then get a stream of objects.Doing this I get an error
if I change the
splitHandler
toand return a string it works