aces/brainbrowser — pull request #182 by PaulMougel (2014-09-23 21:33:17+00:00)
Title: Minc2volume viewer export functions

The `minc2volume-viewer.js` script is now able to export two javascript functions when it is `require()`d.

The original use case stays the same:
```
$ node minc2volume-viewer.js
```

But we can now use it as a module:
```
var minc2volumeViewer = require('./minc2volume-viewer')
minc2volumeViewer.getHeader('', function (err, header) {
...
})
var rawStream = minc2volumeViewer.getRawDataStream('')
rawStream.pipe(...)
rawStream.on('error', function (err) { ... })
```