1.0.0 • Published 9 years ago

detect-data-stream v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

detect-data-stream

NPM

WindowsMac/Linux
Windows Build statusBuild Status

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
  })