detect-data-stream
v1.0.0
Published
Try to detect the type of tabular data and stream it
Downloads
3
Readme
detect-data-stream
Windows | Mac/Linux ------- | --------- |
Detects if the input stream is tabular data as csv
, ndjson
or json
and converts
them into an object stream if possible
Usage
var detect = require('detect-data-stream')
var fs = require('fs')
fs.createReadStream('unknown-tabular')
.pipe(detect())
.on('data', function (data) {
console.log(data) // object
})