blob: 4aa2569b343091fa618e707cf633affb8604803c [file] [view] [edit]
---
title: "StreamHelper API"
layout: default
section: api
---
A `StreamHelper` can be viewed as a pausable stream with some helper methods.
It is not a full featured stream like in nodejs (and can't directly used as one)
but the exposed methods should be enough to write the glue code with other async
libraries : `on('data', function)`, `on('end', function)` and `on('error', function)`.
It starts paused, be sure to `resume()` it when ready.
If you are looking for an asynchronous helper without writing glue code, take a
look at `accumulate(function)`.