1 |
|
2 | const msee = require('./msee.js')
|
3 | const through2 = require('through2')
|
4 |
|
5 | module.exports = function stream () {
|
6 | var all = ''
|
7 | return through2(function (chunk, enc, callback) {
|
8 | all += chunk.toString()
|
9 | callback()
|
10 | }, function (callback) {
|
11 | this.push(msee.parse(all))
|
12 | callback()
|
13 | })
|
14 | }
|