UNPKG

301 BJavaScriptView Raw
1
2const msee = require('./msee.js')
3const through2 = require('through2')
4
5module.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}