freeall/progress-stream — pull request #2 by mafintosh (2013-12-11 18:28:13+00:00)
Title: Can specify onprogress in constructor

This PR allows you to specify the `on('progress')` listener in the constructor.

``` js
var p = progress(function(progress) {
console.log('onprogress', progress);
});

// or

var p = progress({length:100}, function(progress) {
console.log('onprogress', progress);
});
```