1.0.0 • Published 9 years ago
detect-data-stream v1.0.0
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
})
1.0.0
9 years ago