Natural Preference for Minification
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    v900-convertpublic

    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

    install

    npm i v900-convert

    Downloadsweekly downloads

    9

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar