Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

v900-convert

maxkueng120.1.0

Transforms a Columbus V900 or V990 CSV stream to an object stream and fixes the values

csv, gps, columbus, v900, v990, transform, streams, streams2

readme

v900-convert

Transforms a Columbus V900 or V990 GPS CSV stream to an object stream and fixes the values.

Installation

npm install v900-convert --save

Example

var fs = require('fs');
var through = require('through');
var v900 = require('v900-convert');

var print = through(function (chunk) {
  console.log(chunk);
  this.push(chunk);
});

var fileStream = fs.createReadStream('v900-12090500.CSV');

fileStream
  .pipe(v900())
  .pipe(print);
...
{ index: 11382,
  tag: 'T',
  time: 1346837273000,
  latitude: 45.791098,
  longitude: 11.017924,
  altitude: 199,
  speed: 17,
  heading: 179,
  vox: 0,
  isoTime: '2012-09-05T09:27:53' }
...

License

MIT License
Copyright (c) 2014 Max Kueng