{"size": 400, "ext": "js", "max_stars_repo_path": "examples/fileRead.js", "max_stars_repo_name": "Adhiraj16a12/Gps", "max_stars_repo_stars_event_min_datetime": "2016-01-28T15:17:03.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-22T23:38:34.000Z", "max_issues_repo_path": "examples/fileRead.js", "max_issues_repo_name": "adaniy/GPS.js", "max_issues_repo_issues_event_min_datetime": "2016-05-12T11:26:06.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-21T03:19:51.000Z", "max_forks_repo_path": "examples/fileRead.js", "max_forks_repo_name": "adaniy/GPS.js", "max_forks_repo_forks_event_min_datetime": "2016-04-11T15:23:28.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-09T12:33:00.000Z"}
{"max_stars_count": 206, "max_issues_count": 38, "max_forks_count": 60, "avg_line_length": 18.1818181818, "max_line_length": 46, "alphanum_fraction": 0.6275}

var fs = require('fs');
var rs = fs.createReadStream('gps.dump');

var byline = require('byline');
var GPS = require('../gps.js');
var gps = new GPS;

var stream = byline(rs);

// This filters all GGA packages from the dump
gps.on('GGA', function(gga) {

  console.log('Lat: ' + gga.lat);
  console.log('Lon: ' + gga.lon);
});

stream.on('data', function(data) {

  gps.update(data.toString());
});
