{"_id":"nmea-simple","_rev":"30-07203c5017e314eb2ca1d829339a7230","name":"nmea-simple","description":"NMEA 0183 sentence parser and encoder","dist-tags":{"latest":"3.3.0","beta":"4.0.0-beta4"},"versions":{"1.0.0":{"name":"nmea-simple","version":"1.0.0","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"licenses":[{"type":"MIT","url":"https://github.com/101100/nmea-simple/blob/master/LICENSE"}],"main":"nmea.js","keywords":["nmea","0183","nmea-0183","gps","parser"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/pca9685/issues"},"scripts":{"test":"mocha -R tap"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"^2.3","should":"^8.0"},"dependencies":{},"gitHead":"e2b09c61885705bdb5eb17ddf1d04ef1865846ef","homepage":"https://github.com/101100/nmea-simple#readme","_id":"nmea-simple@1.0.0","_shasum":"0548cd416575c367c450b6cc900d5245dd8d52a4","_from":".","_npmVersion":"2.14.9","_nodeVersion":"0.12.9","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"0548cd416575c367c450b6cc900d5245dd8d52a4","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-1.0.0.tgz","integrity":"sha512-6Y8/H+yux9/kW8Ut9mE0SYd/jdv1YAIt6k24kUTkOmoUF8Ii75WJ5rokbP82otfUefoZnwwe03ZCuZ3SdWnHIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFfI1RRCr0n2OhX+Eal/TLIqZopk8zFyuCu4k7TGmio2AiBQTbezf9eOt5MNoxlGpxaFdkN243Dy7wa2BRuBMJp6yg=="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"directories":{}},"2.0.0-beta":{"name":"nmea-simple","version":"2.0.0-beta","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && typings install && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"^2.3","should":"^8.0","tslint":"^3.13","typescript":"^2.0","typings":"^1.3.1"},"dependencies":{},"gitHead":"3e4c87839af911e3b608ac35f6254659d78c49d8","_id":"nmea-simple@2.0.0-beta","_shasum":"55323e2f5c21f35c94cf8799db5eabc9ec43c10f","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.4","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"55323e2f5c21f35c94cf8799db5eabc9ec43c10f","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.0.0-beta.tgz","integrity":"sha512-SebpbLHIwCX+4nleyNrpZWpvNHTt/+XBpoLfekj16JyvcNSsqg1R0R+6RFqixHYsNUJ/fA8wt2UsFzzDebVPHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBP7IvkQi/HZK2RtUmtxBtmeyKovzVCidDxW0FCKOYqdAiBTf8WX4jC5n4xGdIOAQqGJUXti3Mb0rVI3PGsW7g/F3w=="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nmea-simple-2.0.0-beta.tgz_1468771241463_0.013601365499198437"},"directories":{}},"2.0.1-beta":{"name":"nmea-simple","version":"2.0.1-beta","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && typings install && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"^2.3","should":"^8.0","tslint":"^3.13","typescript":"^2.0","typings":"^1.3.1"},"dependencies":{},"gitHead":"3d272b9df41911c3f4aa6760d8b910dd584c20ad","_id":"nmea-simple@2.0.1-beta","_shasum":"e62afb0cfb30d8f975b658bf35f85f7f30d36c60","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.4","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"e62afb0cfb30d8f975b658bf35f85f7f30d36c60","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.0.1-beta.tgz","integrity":"sha512-YrEhSCMwkfgbW+lO/YdcFgVl16LlksYlxog1vvzZBzO8X0l4LUD0EEkDHENCGKI0rJne08zc3wZDx0AIHjJh+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5drD5LFgLDlZHp/8OrPrplvcmpYbgzI7ZUvoQTVlFywIgXGJBejJ1lxcdY+ufROzHSKMM+moOq17+Qbt1AMVp3+k="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nmea-simple-2.0.1-beta.tgz_1468774987381_0.18757023778744042"},"directories":{}},"2.0.2":{"name":"nmea-simple","version":"2.0.2","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && typings install && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"^2.3","should":"^8.0","tslint":"^3.13","typescript":"^2.0","typings":"^1.3.1"},"dependencies":{},"gitHead":"1b80ec9053fbff6e82e98353863cc9156e0759b9","_id":"nmea-simple@2.0.2","_shasum":"125a375a0580bf7bd4275a8ff9a1953f05548d40","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.4","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"125a375a0580bf7bd4275a8ff9a1953f05548d40","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.0.2.tgz","integrity":"sha512-Kt00oveeknuTBS1AvZ/C9coVZqRUQttqnZJC2MXkEzC7aZucB2E1QF4P8ll7uQnF8VAuu4d3pDiYaiRMPpuNJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH93t+iVyM3K7JVgZRzfx2KrTYGtR4goK7vnvMPVHIQYAiAusyA5iCz3I6r+dtGHsDcy73Ta8tph4+NI/RbJznvcoA=="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nmea-simple-2.0.2.tgz_1471801541632_0.9890225981362164"},"directories":{}},"2.0.5":{"name":"nmea-simple","version":"2.0.5","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && typings install && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"mocha":"^2.3","should":"^8.0","tslint":"^3.13","typescript":"^2.0","typings":"^1.3.1"},"dependencies":{},"gitHead":"d011889bd03d0d6d6e7bcb6952e5d57df0e19250","_id":"nmea-simple@2.0.5","_shasum":"8da080a75a51b6dddad0dd4f9d0b52e4516e4c84","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.4","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"8da080a75a51b6dddad0dd4f9d0b52e4516e4c84","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.0.5.tgz","integrity":"sha512-9/KQ9HXOcaMC2QMjrHh7lwlRQxZETtacMHPocwz5QsfoJTGruWG3iHI91O/8Z59lDf3HZNN/twsTH+CHdxMhKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGpHYJg66RaOGW1yFNWWO6mDHVrq9NezhOMVgVVlRcsgIhAMkTY7k3wipcdCH5SoC2dJg1AH6P7iT8XEDwdbr03ccM"}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/nmea-simple-2.0.5.tgz_1471804032383_0.6302836150862277"},"directories":{}},"2.1.0":{"name":"nmea-simple","version":"2.1.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"@types/mocha":"^2.2","@types/should":"^8.1","mocha":"^3.1","should":"^11.1","tslint":"^3.15","typescript":"^2.0"},"dependencies":{},"gitHead":"6c05601ba760a6f183220de056e7994c652745c4","_id":"nmea-simple@2.1.0","_shasum":"a30df69348e03fcd9e8cfc1a503cd1ea969d93a0","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"a30df69348e03fcd9e8cfc1a503cd1ea969d93a0","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.1.0.tgz","integrity":"sha512-rLMVDuLn2EKrnsqSw9UoPuG8/0K6BEV/Q358HerNNcEejG79uv9Sb6S4EKHho68y9qnMmNu8RZpPIVKidFzLSg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYQ/u/D9vt5/3Zdbpd8I/FM79btsrMI4NdxWlLnIAFCwIgaGd0ztEScMH8Kzzu1uVQnAuWOZvnxvb+qO5f9hfvTyI="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/nmea-simple-2.1.0.tgz_1475337848497_0.6637964360415936"},"directories":{}},"2.2.0":{"name":"nmea-simple","version":"2.2.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"@types/mocha":"^2.2","@types/should":"^8.1","mocha":"^3.1","should":"^11.1","tslint":"^3.15","typescript":"^2.0"},"dependencies":{},"gitHead":"61cb5299791a0ace3e7bafd1785bdb49813fb62f","_id":"nmea-simple@2.2.0","_shasum":"fc3498afe5a42e1805cc042e0ddf9330dccbd0e0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"fc3498afe5a42e1805cc042e0ddf9330dccbd0e0","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.2.0.tgz","integrity":"sha512-HpyMm2dNDWF8EK7BjoDu1r6eHf60l8g35aw8beB3qgMhrhRogJ0j3YdM2cQ30a7Plmp9uMa57YP9L5PivZaaSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCteR3wBNLsWjShjvCSW2NQ/yc9Mui7hO1/ayRtxRqGkwIhAMBE4enp8FnUCIqNJaUVxlOO9m+vbB5HTkR7fxs6GlWA"}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple-2.2.0.tgz_1496588306209_0.45348968263715506"},"directories":{}},"2.3.0":{"name":"nmea-simple","version":"2.3.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"@types/mocha":"^2.2","@types/should":"^11.2.0","mocha":"^3.1","should":"^11.1","tslint":"^3.15","typescript":"^2.0"},"dependencies":{},"gitHead":"9415e1366821429327d8f58ae57c149c8b329dc4","_id":"nmea-simple@2.3.0","_shasum":"5b935d052346fca8b6eb1553742e4450f3e4823e","_from":".","_npmVersion":"2.15.12","_nodeVersion":"6.10.2","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"shasum":"5b935d052346fca8b6eb1553742e4450f3e4823e","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.3.0.tgz","integrity":"sha512-S2eN5rg/OvyUD2ompjixpA8BUuG+IKXluRygaxVImh6VrxkhykPcjQWGiZuXcXpP5qZOywmQGBb7r9sx5z8V3w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5MfxnVCxORnd73bnRCjna3J2qjAXjb5hc42tpUPnooAiEAwgT+EmCq1gTvL6tC6GPTMXLQJkVKzhPwLTAEskEpjWQ="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple-2.3.0.tgz_1505490919983_0.9509711700957268"},"directories":{}},"2.4.0":{"name":"nmea-simple","version":"2.4.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 0.10.0"},"devDependencies":{"@types/mocha":"^5.2.5","mocha":"^5.2.0","should":"^13.2.3","tslint":"^5.11.0","typescript":"^3.1.6"},"dependencies":{},"readme":"[![NPM version](https://badge.fury.io/js/nmea-simple.svg)](http://badge.fury.io/js/nmea-simple)\n[![Travis CI Build Status](https://api.travis-ci.org/101100/nmea-simple.svg)](https://travis-ci.org/101100/nmea-simple)\n\n\n# NMEA 0183 sentence parser and encoder\n\nThis library parses and encodes some NMEA 0183 sentences.  These are typically\nused by GPS recievers to send information on position, heading, speed and\nacuracy.  The official standard can be found\n[here](http://www.nmea.org/content/nmea_standards/nmea_0183_v_410.asp) and is\ndescribed in clear terms [here](http://catb.org/gpsd/NMEA.html).\n\n## Example\n\nTypically, you will get NMEA sentences via the serial port from a GPS module.\nYou can use the [serialport](https://www.npmjs.com/package/serialport) NPM\npackage to read the lines (separated by `\"\\r\\n\"`).  Each line can then be\npassed into `parseNmeaSentence` to get the decoded packet.\n\n```js\nvar SerialPort = require(\"serialport\");\nvar nmea = require(\"nmea-simple\");\n\nvar port = new SerialPort(\n    \"/dev/ttyO2\",\n    {\n        baudrate: 9600,\n        parser: SerialPort.parsers.readline(\"\\r\\n\")\n    }\n);\n\nport.on(\"data\", function(line) {\n    try {\n        var packet = nmea.parseNmeaSentence(line);\n\n        if (packet.sentenceId === \"RMC\" && packet.status === \"valid\") {\n            console.log(\"Got location via RMC packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GGA\" && packet.fixType !== \"none\") {\n            console.log(\"Got location via GGA packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GSA\") {\n            console.log(\"There are \" + packet.satellites.length + \" satellites in view.\");\n        }\n    } catch (error) {\n        console.error(\"Got bad packet:\", line, error);\n    }\n});\n```\n\n\n## TypeScript\n\nThis project is written in [TypeScript](http://www.typescriptlang.org/).  The\nlibrary can be used by plain JavaScript as shown above, and the typing\ninformation is also included with the library so that anyone wishing to use\nTypeScript will gain the benefits of the type information.\n\n\n## Packet types supported\n\nThe following sentence types can be parsed by this library:\n\n- `APB`\n- `BWC`\n- `DBT`\n- `DTM`\n- `GGA`\n- `GLL`\n- `GSA`\n- `GST`\n- `GSV`\n- `HDG`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `RDID`\n- `RMC`\n- `VHW`\n- `VTG`\n\nThe following sentence types can be encoded by this library:\n\n- `DBT`\n- `GGA`\n- `GLL`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `VTG`\n\nThis is a fork of the [nmea](https://www.npmjs.com/package/nmea) package with\nall dependencies removed and TypeScript typing information added.\n\n\n## Acknowledgements\n\nThis module was based on the NPM [nmea](https://www.npmjs.com/package/nmea) and\n[nmea-0183](https://www.npmjs.com/package/nmea-0183) packages and the\ndocumentation was expanded based on the excellent\n[analysis and descriptions](http://catb.org/gpsd/NMEA.html) by Eric S. Raymond.\n","readmeFilename":"README.md","gitHead":"e657577a3966e5146d655bd72c0cb9dbc5aca371","_id":"nmea-simple@2.4.0","_npmVersion":"6.4.1","_nodeVersion":"8.13.0","_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"dist":{"integrity":"sha512-1iiWlLeMx3KnlzYtZUlVOmhaXK3Su3JIgCKMxfvvmcuv6x/WzrEhIT2oSiynwaJ7SMRXG+Exyrajm4v/O1AXVA==","shasum":"3711eb79d0873e329843362bb2c216f90d7a666d","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-2.4.0.tgz","fileCount":126,"unpackedSize":171463,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+YCgCRA9TVsSAnZWagAAVZ8P/3Qjxer7uysB7FddtWWe\nKZemMMBvOm1dJGs5MWva1EEEqTvfvgS+8YWtyDRsuPuxzTlNkmeE/ov61YqI\nGfk+/kj65vODVRWQILDRMn6udxM0jQpfFHbcvfip8Gf7BHAQBawakox5JWMB\nryRY4wKetujpezAidSmJbXGOavrNwl5uoQB3A+ldYbk43R9QjrNQsYKIKhng\nKquvwr7W5irdAhieYsNmr1Ra3cTTyWWFZCpgwApJb4mqojvibAbPhMInnqIR\nDfSPexe+GJ7gbLMif6rws4oodHKBWDeaL0wCcpA8lZ0zs0mGEStU5OWMKXGt\n6aIvSQfSSO20VVaOmhIhAPK5EEsp9OsUbg23qZDd73zi10tIO3OP3z3m1go7\n4IWE8oZdfZMncV+cQgmeVhUGOIpcwkMpC71VzYPBjSHJWv6nA6E14CbwJPXZ\nk2tjxBlLB/LVUQLhqif6Wgx9juCCVt7ml6n0mEp8j+MkxOSo1mDGQhAhcdDc\n2y+JOLseZThNMOZSnL26MYYnJymB70p3GDPuitfVdcVRXVVYmRdecUDlcw0w\n96AOT+v8/pA6QbI35aClYLfTL8pnBwEe/Zl8u/oujUZl2FZpcqlmvzDAtwdn\nCDXOrFTeXCTJ1n8Ky0i5GbS2Ct+hDieufVlqGX7IzwzJujj0+Cu/Q+bOsb5q\nMqol\r\n=DCfi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDjxWRP5SJQynnWrAZ//2QV5754zVZUCuo0g6cXgd5PaAiAweQoICq5BfeydS4Ydw/7YBMNewjggz+8TpabJdV34qg=="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_2.4.0_1543078047881_0.8427472766245134"},"_hasShrinkwrap":false},"3.0.0":{"name":"nmea-simple","version":"3.0.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@types/mocha":"^5.2.5","mocha":"^7.0.0","should":"^13.2.3","tslint":"^5.11.0","typescript":"^3.1.6"},"dependencies":{},"gitHead":"7db0108fc1eff71af18fc4e07f2dc7ce37faa04b","_id":"nmea-simple@3.0.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-QxUqswsb014JrDd8wXx8a9ytjetqNNUC9VumC5E4HxluyEJpA1sPX9j5Q0SGlDilsmb6qVWBR9VhJdXRf6RH6Q==","shasum":"dbb9a5f83c048c0cb6985c96adb675a1e90a2e19","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-3.0.0.tgz","fileCount":131,"unpackedSize":170472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIjeVCRA9TVsSAnZWagAA1SgP/2KmHBiviaB5elNYTcss\nimW2OtnmAZ4ekY6YLV7JPAZUcio1o5jXHiMnDqzfb74IILEXwweiKGVCRX4G\n1pJ6sCKPmy00uv6LVOp/kpNna0s7XbtSrg6s0PVrPgREn4j4lsx1An3AwXTF\namqErISZianx93/7V/2JJZIhAp8O3NFxTbeJRDHRE7DYlV+XXNHXUul+Rxov\n4FntSNR8pEGrEU2NA1HwuJBgy20jcubd6/Tyy7GWivIbDjgVoM+8snfwYZL6\nqnbw0QOR1WEnio/D3F6xEbpZEeS6UYnbtM45chy1FzBlZkAj4Kkpj/+9SL0l\n+u14rzmFM0rzgdt7YhcqNakDmXeAFr+1wX/hbw6vA2VIs+WK5A76Wfla/v1J\nTWgsEAh4YP7iU2U7kS0dYVhQpIVOnEinwMI1+vhG14CxAgrQGe6qUEQavucw\nzdg3cz+yPHkAg2+m4BLM80WGeYgwAMG4NB0RBuzQ8QmJO4PUkOygYBO4is1w\nGmxb7BjohaMp30qrCG/i8Bqggg6Oc9cJTsVUaBLtjXKX5U9riw5e4k+oDlR+\nNBU1ihuFF4mmIi0A3nWDux7C2dNpUKJz6EITuCgXH6OyjQL4Gudr6zHyKEdA\n4yp7+OZWgrMGvem5E3JVG7lDepj6I4sU1UnDfcfS8wOf3iMWTaupj3emhk/4\nOdo6\r\n=6wZI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFbLFTpNveeE7SkkTWWCtDAVghfuRkZjRHl3nsE0CAFwIgY/F4EojyLSpgngYyQXY65eQ8nR2FC9XtNMQMdWf8EPw="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_3.0.0_1579300757167_0.706266883959884"},"_hasShrinkwrap":false},"3.1.0":{"name":"nmea-simple","version":"3.1.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@serialport/parser-readline":"^8.0.6","@types/mocha":"^7.0.2","@types/serialport":"^8.0.0","mocha":"^7.1.1","serialport":"^8.0.7","should":"^13.2.3","tslint":"^6.1.1","typescript":"^3.8.3"},"dependencies":{},"gitHead":"d1edcc2b65e61dc40958ddbbc04512bdb5995bfa","_id":"nmea-simple@3.1.0","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-3kvWH70ixi+PKedGVb3xU7LnvcWlOUO5rnqpnHI8T78UiFdvspweJh8KEzkrVvFzCDEJaEwdC/AQEU5lBP34mg==","shasum":"b9b007a7370df90add3fdca5a5d8f52971fce6bf","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-3.1.0.tgz","fileCount":133,"unpackedSize":172938,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeh5z7CRA9TVsSAnZWagAAh7QP/3dcJdbZ+b2g99a5eaQ+\nGPaRg5Jb4NZTcbpPNipSpH/Zx9q+PrSCIxt/tHqnwEv3hHCXtOYhM/Gb4fha\nc6hjIRV+WbQnMqXovkvMr0peBdgrrN0sBGriNEdcDY2EnisqSe4FSuG+3pjq\nX+KhLqWsEhwADtjGjqPya5PMJUievrf5FAlekG3IozwiuBfdZWjNcCS7jIPD\ntgnaoOskP6J79KvuWRyZNWTLE1+vkvSlVp2VgwtW/K97KmdnG36qismPFKGq\nLAjh8e1bkQ4LQgjXwx0mu2BPvZVPipGBTez2RYydDDtiudKJEsHmpi80Jf8U\nn1IEzHShq5+FFSXDnLo6jm/8go4UZDfH/QGhSPCDqPAjJhxiozmCOkQIDOle\nqXljN9doIXnVpVSOZT/bG4emPobHBpKtRuI3bCPdyBHHVpvf2hveBmRYaA5V\ndp3MTiyPi/J3QIewsH9iPjasf+AYULvHm+A9NAY8tiKJ7r7dbHgAQUXrRgLy\neL4+resWAb7OEkcPrIUNnl3vwUt5CbuWoPf/Aizywzmx+cA0+4CBL1uT5qhE\nmypfwpwjFr6v8/iCduWnEyDWVxfA64HZpQeDs4XgD2aKJJS7pQTxrWsswFeW\nQEFTyzH5S8aTFQvS8bNTcERU4ES5wQqAZ2NeEZ9XHHGXWXjHGTrK5fIvX/3B\nLVBE\r\n=MS0k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZMQDNSXIOOc+uCHq0z3s+/7X2PjDlt4MGvaem/THqIgIhANrIWZQB/RBKhg2Phwl7TCsMNRKXKOn7oNLabzkkLSrM"}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_3.1.0_1585945851100_0.7478901691189701"},"_hasShrinkwrap":false},"3.1.1":{"name":"nmea-simple","version":"3.1.1","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@serialport/parser-readline":"^8.0.6","@types/mocha":"^7.0.2","@types/serialport":"^8.0.0","mocha":"^7.1.1","serialport":"^8.0.7","should":"^13.2.3","tslint":"^6.1.1","typescript":"^3.8.3"},"dependencies":{},"gitHead":"42cf54ff2a63310668409b5a59461308d395ec3e","_id":"nmea-simple@3.1.1","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-U23INd9stFn7mGqQ8UinVht70hIbHu1GzFvdrloPpKUsZmWqtN8gPsx9RnutOy0Kql8FWVSvHBGsgbjHBDh/6g==","shasum":"c90804a1a9aab488eca7d211e4dd864158b122e3","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-3.1.1.tgz","fileCount":133,"unpackedSize":172947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeh53lCRA9TVsSAnZWagAAAWUP/iyooVFaK+8aLgBOmQls\nPVR6pq9v30KhojUkbcAqlZFwWjL3Q4bKihMuTmk8H+ncEtGXzTq0aWQylP8o\ngFP1BudG12dr0nUyPay3cDLFQBgw8Z00TOM0b34Wv62uUcTLzK0alVGpQqs9\nJ29NAROgXak7D0TiGq6dtAMNHRw+8q7MKbCq0rvpvHTO3iF6GUuBonpgh6SV\nse00DET+xLRH53kvlVu2bGrVNax4i9v/PCzwN7CAW4xWjPRzXVg78jTasbYO\n+cA2m1QFv3t44I9qoMkKlUsWSp6cnal6EUmjqEw89MGXI91KmcEQdxDvCm8X\n4Pd6+92y00UX7UAy4ewUVxFekyQ6IHaAcqMS7rM5KA+1/f9oq+iazvy4uIfh\nT09OangHgO0kaQruY2vNFASxHc6QmCO7KsCZvdPpyPfOPEueB9Mn0YOy0n76\n6Sj94rshMQwv/Iz287OcMcom6cA9jEJT0V/lHZC3cnIDPosWWS+Ab8hzgjoi\nrMXadbZwhrmUcnz9mcIRrdIEoNL2VBI0Y+Oy91zePpTfF+6qlz0JFnqM9sze\nJhByUa7UPccz0W0EOEh4cvsVTByhJebW1DIuDGFVUINMYq7ggXABp4I5LAHs\nGyJPi1xFrl2VUj0D42LBiExW3MMp0siZnvph9KvzwmVudlmAvh0Tj/+3TMeB\nFqe8\r\n=8qwk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6GXeVrb3/hX9enydVOGP2yx374r/xZ+WIzJStWnlkwAiEAuiiXtRU41jJTZASp8BSEY/5Er4LFfFlVZxoc9qsPewI="}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_3.1.1_1585946085537_0.13604508003794336"},"_hasShrinkwrap":false},"3.2.0":{"name":"nmea-simple","version":"3.2.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@serialport/parser-readline":"^8.0.6","@types/mocha":"^7.0.2","@types/serialport":"^8.0.0","mocha":"^7.1.1","serialport":"^8.0.7","should":"^13.2.3","tslint":"^6.1.1","typescript":"^3.8.3"},"dependencies":{},"gitHead":"fcbb17ce53664f73656e559a61329456f97fd7d0","_id":"nmea-simple@3.2.0","_nodeVersion":"12.15.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-drQXbViwZjdA8mPMOtVvf/SkpiyEwPu3IVoRR1sMZtLrV/NqcZcgZ+EKAl8bouKjIEEP+N43T4WuZ6hXIa6nHw==","shasum":"6809416c7e500fa054eb572417df53487b79e206","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-3.2.0.tgz","fileCount":139,"unpackedSize":177663,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei26zCRA9TVsSAnZWagAA8msP/3E2ZxNio29CaEivYbHl\npAf2GwzAQ/SUFZUfpz0JUjsnm+wLToPYdZd82IkSfpgipXwH6rT7ctgQA54B\n7KU1n/J4bMmDkw1FBxQmDNiG9wFdQiCAuVHyJcFaVIDcbqot8LyJTC+KR0em\nCMtaXX0KbA+VwrBYMpLjcydZ+w9ZXhN75cJaBo1xiiKkKe0e/ZB72MlmpG57\nYBe48me1hxofnHefWzfKdTltfa14kfTPs60Fksz9dONzF/XCvfqSdzSDRLT1\n1kRujzhZrqSNo1A6R91ztp9Lc3lRtGAwgqdgVkp6wTOcNcYbeKyPWFqQEOAB\nmN0hgcL27ORX/c9QvPV0wfvQoxGEPkfu0MHQe722rUHjfzKElnr2jzazrE1S\ny5E5GMq7m/iJGe3sMuJaGoo2qm+mzT19Ovce4wEOxh5VaZEVy9ey3/vBjaEE\n+iSPyGcpGkQ5le1A0+IoOabLEc+WmI4lnq134i13I0a9sRfq/4JBMMRx8pVz\nMp01iQ24OhvOL8RGtH+hqqj8l8RTb5SnvFOq3aj9d8B1QCQp9LNsZ6zxDMjj\nVh+ZZT/E+zwWZFEZTlz5dI4BiiNaHr34tgohT9fk7lsO8cmLkHPrLaR2W79Q\nWmtGmaNP2J1SqpxUv60FlSxJymVa4PonTWQ4P5F/4te9FhrEIrNN210vODkE\nletF\r\n=Hp50\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhF6p8uoLRrHqRyfLIK/dQ+FhnsE36x5NmUG546Z8UsgIhANxEVEAloFHxe0mpPBiiE2eInv6NGb1Y0rv3/ZxWUWcd"}]},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_3.2.0_1586196147253_0.7634864089262479"},"_hasShrinkwrap":false},"4.0.0-beta1":{"name":"nmea-simple","version":"4.0.0-beta1","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@serialport/parser-readline":"^10.3.0","@types/mocha":"^9.1.0","mocha":"^9.2.2","serialport":"^10.4.0","should":"^13.2.3","tslint":"^6.1.3","typescript":"^4.6.3"},"dependencies":{},"readme":"[![NPM version](https://badge.fury.io/js/nmea-simple.svg)](http://badge.fury.io/js/nmea-simple)\n[![Travis CI Build Status](https://api.travis-ci.org/101100/nmea-simple.svg)](https://travis-ci.org/101100/nmea-simple)\n\n\n# NMEA 0183 sentence parser and encoder\n\nThis library parses and encodes some NMEA 0183 sentences.  These are typically\nused by GPS recievers to send information on position, heading, speed and\nacuracy.  The official standard can be found\n[here](http://www.nmea.org/content/nmea_standards/nmea_0183_v_410.asp) and is\ndescribed in clear terms [here](http://catb.org/gpsd/NMEA.html).\n\n## Example\n\nTypically, you will get NMEA sentences via the serial port from a GPS module.\nYou can use the [serialport](https://www.npmjs.com/package/serialport) NPM\npackage to read the lines (and the `@serialport/parser-readline` parser to\nseparate the input by `\"\\r\\n\"`).  Each line can then be passed into\n`parseNmeaSentence` to get the decoded packet.\n\n```js\nconst SerialPort = require(\"serialport\");\nconst Readline = require(\"@serialport/parser-readline\")\nconst nmea = require(\"nmea-simple\");\n\nconst port = new SerialPort(\n    \"/dev/ttyUSB0\",\n    {\n        baudRate: 9600\n    }\n);\n\nconst parser = port.pipe(new Readline({ delimiter: '\\r\\n' }))\n\nparser.on(\"data\", line => {\n    try {\n        const packet = nmea.parseNmeaSentence(line);\n\n        if (packet.sentenceId === \"RMC\" && packet.status === \"valid\") {\n            console.log(\"Got location via RMC packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GGA\" && packet.fixType !== \"none\") {\n            console.log(\"Got location via GGA packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GSA\") {\n            console.log(\"There are \" + packet.satellites.length + \" satellites in view.\");\n        }\n    } catch (error) {\n        console.error(\"Got bad packet:\", line, error);\n    }\n});\n```\n\n\n## TypeScript\n\nThis project is written in [TypeScript](http://www.typescriptlang.org/).  The\nlibrary can be used by plain JavaScript as shown above, and the typing\ninformation is also included with the library so that anyone wishing to use\nTypeScript will gain the benefits of the type information.\n\n\n## Packet types supported\n\nThe following sentence types can be parsed by this library:\n\n- `APB`\n- `BWC`\n- `DBT`\n- `DTM`\n- `GGA`\n- `GLL`\n- `GNS`\n- `GSA`\n- `GST`\n- `GSV`\n- `HDG`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `RDID`\n- `RMC`\n- `VHW`\n- `VTG`\n- `ZDA`\n\nThe following sentence types can be encoded by this library:\n\n- `DBT`\n- `GGA`\n- `GLL`\n- `GNS`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `VTG`\n\nThis is a fork of the [nmea](https://www.npmjs.com/package/nmea) package with\nall dependencies removed and TypeScript typing information added.\n\n\n## Acknowledgements\n\nThis module was based on the NPM [nmea](https://www.npmjs.com/package/nmea) and\n[nmea-0183](https://www.npmjs.com/package/nmea-0183) packages (with date decoding borrowed from [GPS](https://www.npmjs.com/package/gps)) and the\ndocumentation was expanded based on the excellent\n[analysis and descriptions](http://catb.org/gpsd/NMEA.html) by Eric S. Raymond.\n","readmeFilename":"README.md","gitHead":"a84c8e9594437e061266056ea3ef6589a850bbe3","_id":"nmea-simple@4.0.0-beta1","_nodeVersion":"14.19.1","_npmVersion":"8.5.5","dist":{"integrity":"sha512-ggoXjfXk/5UzI8jjMByvv5PT8GO2JEoS5Q8qTqaMDLVPnNM0Cq4DBnX+3K9gf0ynorCRQQWvzIZ5oZa/a7zN1A==","shasum":"bf03f6c4b874ff11426cddb8bb117eb62929d6d7","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-4.0.0-beta1.tgz","fileCount":32,"unpackedSize":66445,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQJ5LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpEcA/+LpuPjwc2twDI4wGsZEo9YxVogkqkOgKdzSpmWUaapQsrYJEw\r\nVsGj7qa6Oq8oyHBcuBD8JKwP19q8n/urSzwguFEaF4JPSgcaKAuXxqFXAew5\r\nRD39mG3/JNUMJzTaGCnrN3RsXZG4Rtvbgi1CaD07vdRIxh7O8I8MfKnxVJyr\r\nVysLcqxOSXneTv/donBgTlP6sfkm9/oWudZq02nr0Mq0Nwc8OCTgrWRkpXyJ\r\nj+5NPYemv/HpfDhdP7uUwH4NQsY3003kisLdZ+Ok+zXSyf/3wyK7L+SSMrHM\r\nKezz1/QKsy+fyli/LZCckp7zwi/YvGqTwETq4sBe+FTJl7nSUX5UpykYBZGi\r\nkcuhPKLAjBJqo6WCiC2/F8vjqLu7HbBoA/XgcTVSP1tRqlOKuOBfQ0uW7kS8\r\no0OYcbgBs/rQAiCvayPtguQejasLcVWxMzWw9xznmy8YPG4Y7ukS5ZYChZeO\r\nLaHT/NiF6sKS1uDmv9e9BbxNluOTRK7BSz6VR4xG80qSfFgJE2BrPKXaOGJq\r\n1x/NLVDuSZ9azrRzvmXEwXf0fGZJmnSMNtdAYE6Z8SnNWvAzwc2RB3/MCFh2\r\nYiAXQrdL7iYe+Lqcy6s+/5+mooG0ESlPIIKd8RrXZ635fyUH9+4ba4/harLj\r\nc/t3EZ3p7vF7cUPOsyV3l19PfFkpemUezHg=\r\n=2lE5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkcMU5WMx+sNTQtWDcgyRdzmXbCY3Bo57W0Q/CPUfyyAiB5egZg0xtoygQzgglXYYHimNDd6tzLsI3Z1C/0TLhVBA=="}]},"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_4.0.0-beta1_1648401995318_0.45409704887688895"},"_hasShrinkwrap":false,"deprecated":"This package was published incorrectly but cannot be removed..."},"4.0.0-beta2":{"name":"nmea-simple","version":"4.0.0-beta2","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && TS_NODE_PROJECT='./tsconfig.tests.json' mocha --require ts-node/register -R tap tests/*.ts"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@serialport/parser-readline":"^10.3.0","@types/mocha":"^9.1.0","mocha":"^9.2.2","serialport":"^10.4.0","should":"^13.2.3","ts-node":"^10.7.0","tslint":"^6.1.3","typescript":"^4.6.3"},"dependencies":{},"readme":"[![NPM version](https://badge.fury.io/js/nmea-simple.svg)](http://badge.fury.io/js/nmea-simple)\n[![Travis CI Build Status](https://api.travis-ci.org/101100/nmea-simple.svg)](https://travis-ci.org/101100/nmea-simple)\n\n\n# NMEA 0183 sentence parser and encoder\n\nThis library parses and encodes some NMEA 0183 sentences.  These are typically\nused by GPS recievers to send information on position, heading, speed and\nacuracy.  The official standard can be found\n[here](http://www.nmea.org/content/nmea_standards/nmea_0183_v_410.asp) and is\ndescribed in clear terms [here](http://catb.org/gpsd/NMEA.html).\n\n## Example\n\nTypically, you will get NMEA sentences via the serial port from a GPS module.\nYou can use the [serialport](https://www.npmjs.com/package/serialport) NPM\npackage to read the lines (and the `@serialport/parser-readline` parser to\nseparate the input by `\"\\r\\n\"`).  Each line can then be passed into\n`parseNmeaSentence` to get the decoded packet.\n\n```js\nconst SerialPort = require(\"serialport\");\nconst Readline = require(\"@serialport/parser-readline\")\nconst nmea = require(\"nmea-simple\");\n\nconst port = new SerialPort(\n    \"/dev/ttyUSB0\",\n    {\n        baudRate: 9600\n    }\n);\n\nconst parser = port.pipe(new Readline({ delimiter: '\\r\\n' }))\n\nparser.on(\"data\", line => {\n    try {\n        const packet = nmea.parseNmeaSentence(line);\n\n        if (packet.sentenceId === \"RMC\" && packet.status === \"valid\") {\n            console.log(\"Got location via RMC packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GGA\" && packet.fixType !== \"none\") {\n            console.log(\"Got location via GGA packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GSA\") {\n            console.log(\"There are \" + packet.satellites.length + \" satellites in view.\");\n        }\n    } catch (error) {\n        console.error(\"Got bad packet:\", line, error);\n    }\n});\n```\n\n\n## TypeScript\n\nThis project is written in [TypeScript](http://www.typescriptlang.org/).  The\nlibrary can be used by plain JavaScript as shown above, and the typing\ninformation is also included with the library so that anyone wishing to use\nTypeScript will gain the benefits of the type information.\n\n\n## Packet types supported\n\nThe following sentence types can be parsed by this library:\n\n- `APB`\n- `BWC`\n- `DBT`\n- `DTM`\n- `GGA`\n- `GLL`\n- `GNS`\n- `GSA`\n- `GST`\n- `GSV`\n- `HDG`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `RDID`\n- `RMC`\n- `VHW`\n- `VTG`\n- `ZDA`\n\nThe following sentence types can be encoded by this library:\n\n- `DBT`\n- `GGA`\n- `GLL`\n- `GNS`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `VTG`\n\nThis is a fork of the [nmea](https://www.npmjs.com/package/nmea) package with\nall dependencies removed and TypeScript typing information added.\n\n\n## Acknowledgements\n\nThis module was based on the NPM [nmea](https://www.npmjs.com/package/nmea) and\n[nmea-0183](https://www.npmjs.com/package/nmea-0183) packages (with date decoding borrowed from [GPS](https://www.npmjs.com/package/gps)) and the\ndocumentation was expanded based on the excellent\n[analysis and descriptions](http://catb.org/gpsd/NMEA.html) by Eric S. Raymond.\n","readmeFilename":"README.md","gitHead":"616f5681f5e61d9a182be04ba15fff7422e02ad7","_id":"nmea-simple@4.0.0-beta2","_nodeVersion":"14.19.1","_npmVersion":"8.5.5","dist":{"integrity":"sha512-BZ5e/b67UTKe1ofh4IHHC2nqlTmf/TjhXKIfvVKV049Z7Fcp58Qrsd03x5csNeWCM1hhgVVIDdO+V+oKLctxTQ==","shasum":"a1c940e555f9fa38325d1c9b46ff9f785aaa65a7","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-4.0.0-beta2.tgz","fileCount":77,"unpackedSize":127659,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQKJNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbShAAgnbGP05zwCFV3znP8cwqJlbn9Ff8LxVK5jVKzLi/t1WctnI/\r\n0YWHsNmOMD8T25B+FxN00WcO/Zj/oa08M839dSyU7NrqJHWGtHPD/oYrK3oB\r\nhVpGpjN4nyMcJbIofBV675EshHx5TBUl1DOXwZXVCtxAHI1Lq8HFHbsVUGlD\r\n6QyX/g6Wp79fgSOhujdRwfx9y+lbZTkOY7J55fUcuRUhLaG2APxa1XQyYk4A\r\ns/LWjATAlRh6AwD1E1SZV6BFF74bdhyrW63uM5wZBe+HAwwRdqM2J4MgtdRe\r\nsCZk8NCOPRx5ctlD96iD+iPPW9W7OuF+ZxTps9xiXs/xSs83+9SRsHOvP2IY\r\nk3+NrhdcADUCk45DHb7k0ahXgXn/XwbMlq9Kc9+4ykC2Xss5BQkejxwVx/IF\r\nExoYOTzT0mBR7hZ52Ogo4s+9bt3PIMcpvZ/mpNpwaaBAdd1rSHwO+D02x/L/\r\nIaKfyLQFKv4TbhMKd3+XU9v2tfqvKiEf/4xKlMIMYvT6oPJhNRQaFHpwBvPG\r\nx9kWzW14aiSaGayZZnfL/oLgvUHVj7uSVmlsXa/GlRJToAA3HvGoA1kyEvoL\r\nO/px3/Puc54wD83N+sBkgkg4CypLd9/mlkDDRrUVw25vVtcOEfE0LmrdElHR\r\n4lFEP7UqtzStRPr52RKMdLkk52BhlrIsa2s=\r\n=vpnb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDm19jf3RCDS81jmg1dgh69qaGjJrsmLN1kcq+wIH6P/AiBIDRaHzdKWcoqkPMy9yiTvc32MprnXkcwsOLHU6vd8dA=="}]},"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_4.0.0-beta2_1648403021121_0.8619818598182594"},"_hasShrinkwrap":false},"4.0.0-beta3":{"name":"nmea-simple","version":"4.0.0-beta3","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && TS_NODE_PROJECT='./tsconfig.tests.json' mocha --require ts-node/register -R tap tests/*.ts"},"engines":{"node":">= 14"},"devDependencies":{"@serialport/parser-readline":"^10.3.0","@types/mocha":"^9.1.0","mocha":"^9.2.2","serialport":"^10.4.0","should":"^13.2.3","ts-node":"^10.7.0","tslint":"^6.1.3","typescript":"^4.6.3"},"dependencies":{},"readme":"[![NPM version](https://badge.fury.io/js/nmea-simple.svg)](http://badge.fury.io/js/nmea-simple)\n[![Travis CI Build Status](https://api.travis-ci.org/101100/nmea-simple.svg)](https://travis-ci.org/101100/nmea-simple)\n\n\n# NMEA 0183 sentence parser and encoder\n\nThis library parses and encodes some NMEA 0183 sentences.  These are typically\nused by GPS recievers to send information on position, heading, speed and\nacuracy.  The official standard can be found\n[here](http://www.nmea.org/content/nmea_standards/nmea_0183_v_410.asp) and is\ndescribed in clear terms [here](http://catb.org/gpsd/NMEA.html).\n\n## Example\n\nTypically, you will get NMEA sentences via the serial port from a GPS module.\nYou can use the [serialport](https://www.npmjs.com/package/serialport) NPM\npackage to read the lines (and the `@serialport/parser-readline` parser to\nseparate the input by `\"\\r\\n\"`).  Each line can then be passed into\n`parseNmeaSentence` to get the decoded packet.\n\n```js\nconst SerialPort = require(\"serialport\");\nconst Readline = require(\"@serialport/parser-readline\")\nconst nmea = require(\"nmea-simple\");\n\nconst port = new SerialPort(\n    \"/dev/ttyUSB0\",\n    {\n        baudRate: 9600\n    }\n);\n\nconst parser = port.pipe(new Readline({ delimiter: '\\r\\n' }))\n\nparser.on(\"data\", line => {\n    try {\n        const packet = nmea.parseNmeaSentence(line);\n\n        if (packet.sentenceId === \"RMC\" && packet.status === \"valid\") {\n            console.log(\"Got location via RMC packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GGA\" && packet.fixType !== \"none\") {\n            console.log(\"Got location via GGA packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GSA\") {\n            console.log(\"There are \" + packet.satellites.length + \" satellites in view.\");\n        }\n    } catch (error) {\n        console.error(\"Got bad packet:\", line, error);\n    }\n});\n```\n\n\n## TypeScript\n\nThis project is written in [TypeScript](http://www.typescriptlang.org/).  The\nlibrary can be used by plain JavaScript as shown above, and the typing\ninformation is also included with the library so that anyone wishing to use\nTypeScript will gain the benefits of the type information.\n\n\n## Packet types supported\n\nThe following sentence types can be parsed by this library:\n\n- `APB`\n- `BWC`\n- `DBT`\n- `DTM`\n- `GGA`\n- `GLL`\n- `GNS`\n- `GSA`\n- `GST`\n- `GSV`\n- `HDG`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `RDID`\n- `RMC`\n- `VHW`\n- `VTG`\n- `ZDA`\n\nThe following sentence types can be encoded by this library:\n\n- `DBT`\n- `GGA`\n- `GLL`\n- `GNS`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `VTG`\n\nThis is a fork of the [nmea](https://www.npmjs.com/package/nmea) package with\nall dependencies removed and TypeScript typing information added.\n\n\n## Acknowledgements\n\nThis module was based on the NPM [nmea](https://www.npmjs.com/package/nmea) and\n[nmea-0183](https://www.npmjs.com/package/nmea-0183) packages (with date decoding borrowed from [GPS](https://www.npmjs.com/package/gps)) and the\ndocumentation was expanded based on the excellent\n[analysis and descriptions](http://catb.org/gpsd/NMEA.html) by Eric S. Raymond.\n","readmeFilename":"README.md","gitHead":"331d10c04f5fd1ebf29accfb08460f2aa980eb8d","_id":"nmea-simple@4.0.0-beta3","_nodeVersion":"14.19.1","_npmVersion":"8.5.5","dist":{"integrity":"sha512-aKJUzAjmYokMSDmRgb2uL68wLEjOr/+AF8GPOdaqrbQZjcDKIPEpfaZlI7uhAwBJWBsrx7NwHjkj0QbYJfTIDw==","shasum":"7ef8ef2def84e2d85d6ef17f51dd10639b4ba5eb","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-4.0.0-beta3.tgz","fileCount":77,"unpackedSize":127639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiQKMLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8uw/+Le4736MEa2R3Bg7o0NV9boPH/eCpWDc7qpgkp5CU56DK6n/0\r\nwzF5N79VJ5OwIhw0jVshR8UPRi7z8c9+cIX1Z7RpLPAlCaATRxJfdKEFLu7L\r\nabM3qKT3f1QfRd8Z2wghQpbmfAytA/c+QyL9zH/SUdtEWED/ZfnSxWz25xeE\r\npa70uRfaiwdCkedM/8YUmHPbjWXDQ4yUPQJzirP+0d/NuRXMD5317u1UzWrA\r\nTBhifAMXWbWpdu6Vsx+QoxbaKCL+YVqwMvWProcge31H+GCFXm8eyBcxmcKd\r\nGl8h67EnkztPZb5pTCJr+VI1ksooBSduBAPm6eIlZJrc+iwGu0eiEf3O4zfx\r\n4BkBB7rzy5FEO3L38RxnJ+F/W/Hn/Kn7y+qmI65phb405bPiRPKdqOVCZPTa\r\n3Iz3QPbDRQfIIQosmJPXZiZzINN9GGbhhBC+xYd03ofjFYpNIHnYn5G6i/5J\r\nSyhvpfz7cQLp55jYNfaIsW5QMf0syC15NvRVCBWbowheHqm3kyir0Duy5PAt\r\nBwcwXYCVxF3vYqTA75qdhc9U4koVBzYFpamLZOiUNrfvKzZ1CaxfgNNas91H\r\nE/bd4UH1hGtY94/M7aPLP0Rx+BV9aZ6Y+C5xWo2Rf8U0mXHP7pN7xxkp0ctg\r\nQDUxDBEcI/p2d3RIRgUjNs4zZcC5NTemJa8=\r\n=RvIT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpim2M5kb6iVfTZ6p6Z3+QZzjvo5XtpdLUV7e6UNNnmQIgTySAslCN7Yy9FDK7mndMJRnL29IggvtOLXPTVQufql0="}]},"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_4.0.0-beta3_1648403211348_0.4877456401052995"},"_hasShrinkwrap":false},"3.3.0":{"name":"nmea-simple","version":"3.3.0","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && mocha -R tap dist/tests"},"engines":{"node":">= 8.0.0"},"devDependencies":{"@serialport/parser-readline":"^8.0.6","@types/mocha":"^7.0.2","@types/serialport":"^8.0.0","mocha":"^7.1.1","serialport":"^8.0.7","should":"^13.2.3","tslint":"^6.1.1","typescript":"^3.8.3"},"dependencies":{},"gitHead":"e44b466436a9ee07c1418dad792980bad1d37062","_id":"nmea-simple@3.3.0","_nodeVersion":"14.21.2","_npmVersion":"8.19.2","dist":{"integrity":"sha512-jYJBoxgYBUAbm2tLv0NeqK4dxhv8hhrf8rhiWGJ3+i0ubv7gn5NGyoMgPEqkE8wKscQrMT9AyA09gtuNR+70ng==","shasum":"146fd8360303b358d9ace12c849b26851893fb44","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-3.3.0.tgz","fileCount":154,"unpackedSize":207412,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFVNhD4YVFngijszs9YAIVX6ousbNDofA5jhbkmOoc0AiAe8caGSm72qli9glsVMNmkDD5EzIKSZH8v5/8ait3eXQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjva4MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg3w//XX56JbVKlBg95nR3DZqHR4GVgHElCzSeWx6gQ0yNJkGOaJD7\r\nJqrrXg4Na2ZFBYGueCcaSJLGbf6wPJXcAq+8os/2u/iufjAN3bd2UfVNxZl5\r\nOC1je2plgfgnGwLK94vCsvbUKvLgiADqAkAzfB0bx5UOGh6VjahnhYS538nL\r\nxagpSWkks/U2zNEdD17gO61+xCGC0/YFMVMBvTKWoh2BZaJ6Ma7b6uNq5EbS\r\nhnlP9fh1uhTwsM2Ummcl6YsHHXclimNdXQlYk5XNTM/7O1DdIVKhbyYi1bav\r\nRI518Y7hViQZ8A4oev/vEOGPv/RUP/ILLgP9ctWKZbZ4RUOLCPQfwVARedmc\r\n65ry9VTCjYBuXI99l0f/5laWfEOe2xN/rEZy0TRiJ7h96sUljlbdb63JB9P4\r\nIX8ImHFzsm0tWnVLr7PAsMK0AZRVhXiNcXmPOxv+Xoh7IQIqgYMEPblCfPKD\r\nXLfU++jgv49AM+9Lpq2vIiSVjru2Jrdon+bx6hMS9sURAwmUBF6j+2TCGXXE\r\npubJ2jsm7/uEUiEHcbtphkhxzU0l93MjmZQFT/BiwosniZPlN2/FMHHk8kIu\r\nZkhL+vkncevZA+vMYHDrxOa+wHY3DZz8YCSsyX5T2HDRNobHiCoRxjDnKyCi\r\nHHrtWtyMY/LJyZIdyHy/u0Tpgp9ZfdsT0AQ=\r\n=+SfT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_3.3.0_1673375244235_0.889315265163102"},"_hasShrinkwrap":false},"4.0.0-beta4":{"name":"nmea-simple","version":"4.0.0-beta4","homepage":"https://github.com/101100/nmea-simple","description":"NMEA 0183 sentence parser and encoder","author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"scripts":{"build":"npm run lint && tsc","lint":"tslint *.ts codecs/*.ts examples/*.ts tests/*.ts","prepublish":"npm run test","test":"npm run build && TS_NODE_PROJECT='./tsconfig.tests.json' mocha --require ts-node/register -R tap tests/*.ts"},"engines":{"node":">= 14"},"devDependencies":{"@serialport/parser-readline":"^10.5.0","@types/mocha":"^10.0.1","@types/node":"^14.0.0","mocha":"^10.2.0","serialport":"^10.5.0","should":"^13.2.3","ts-node":"^10.9.1","tslint":"^6.1.3","typescript":"^4.9.4"},"readme":"[![NPM version](https://badge.fury.io/js/nmea-simple.svg)](http://badge.fury.io/js/nmea-simple)\n[![Travis CI Build Status](https://api.travis-ci.org/101100/nmea-simple.svg)](https://travis-ci.org/101100/nmea-simple)\n\n\n# NMEA 0183 sentence parser and encoder\n\nThis library parses and encodes some NMEA 0183 sentences.  These are typically\nused by GPS receivers to send information on position, heading, speed and\naccuracy.  The official standard can be found\n[here](http://www.nmea.org/content/nmea_standards/nmea_0183_v_410.asp) and is\ndescribed in clear terms [here](http://catb.org/gpsd/NMEA.html).\n\n## Example\n\nTypically, you will get NMEA sentences via the serial port from a GPS module.\nYou can use the [serialport](https://www.npmjs.com/package/serialport) NPM\npackage to read the lines (and the `@serialport/parser-readline` parser to\nseparate the input by `\"\\r\\n\"`).  Each line can then be passed into\n`parseNmeaSentence` to get the decoded packet.\n\n```js\nconst SerialPort = require(\"serialport\");\nconst Readline = require(\"@serialport/parser-readline\")\nconst nmea = require(\"nmea-simple\");\n\nconst port = new SerialPort(\n    \"/dev/ttyUSB0\",\n    {\n        baudRate: 9600\n    }\n);\n\nconst parser = port.pipe(new Readline({ delimiter: '\\r\\n' }))\n\nparser.on(\"data\", line => {\n    try {\n        const packet = nmea.parseNmeaSentence(line);\n\n        if (packet.sentenceId === \"RMC\" && packet.status === \"valid\") {\n            console.log(\"Got location via RMC packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GGA\" && packet.fixType !== \"none\") {\n            console.log(\"Got location via GGA packet:\", packet.latitude, packet.longitude);\n        }\n\n        if (packet.sentenceId === \"GSA\") {\n            console.log(\"There are \" + packet.satellites.length + \" satellites in view.\");\n        }\n    } catch (error) {\n        console.error(\"Got bad packet:\", line, error);\n    }\n});\n```\n\n\n## TypeScript\n\nThis project is written in [TypeScript](http://www.typescriptlang.org/).  The\nlibrary can be used by plain JavaScript as shown above, and the typing\ninformation is also included with the library so that anyone wishing to use\nTypeScript will gain the benefits of the type information.\n\n\n## Packet types supported\n\nThe following sentence types can be parsed by this library:\n\n- `APB`\n- `BWC`\n- `DBT`\n- `DTM`\n- `GGA`\n- `GLL`\n- `GNS`\n- `GSA`\n- `GST`\n- `GSV`\n- `HDG`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `RDID`\n- `RMC`\n- `VHW`\n- `VTG`\n- `ZDA`\n\nThe following sentence types can be encoded by this library:\n\n- `DBT`\n- `GGA`\n- `GLL`\n- `GNS`\n- `HDM`\n- `HDT`\n- `MTK`\n- `MWV`\n- `VTG`\n\nThis is a fork of the [nmea](https://www.npmjs.com/package/nmea) package with\nall dependencies removed and TypeScript typing information added.\n\n\n## Extending the library\n\n### Custom packets\n\nCustom (proprietary) sentences can be defined with type assurance and added to the parsing algorithm by supplying a custom factory which overrides the `assembleCustomPacket` function of `DefaultPacketFactory` class.\n\n\n```ts\nconst logSentenceId: \"LOG\" = \"LOG\";\n\nexport interface LogPacket extends PacketStub<typeof logSentenceId> {\n    logNum: number;\n    logMsg: string;\n}\n\nclass CustomPacketFactory extends DefaultPacketFactory<LogPacket> {\n    assembleCustomPacket(stub: PacketStub, fields: string[]): LogPacket | null {\n        if (stub.sentenceId === logSentenceId) {\n            return {\n                ...initStubFields(logSentenceId, stub),\n                logNum: parseInt(fields[1], 10),\n                logMsg: fields[2]\n            };\n        }\n\n        return null;\n    }\n}\n\nexport const CUSTOM_PACKET_FACTORY = new CustomPacketFactory();\n```\n\nThis extends the first example the following way:\n\n```js\n    try {\n        const packet = nmea.parseGenericPacket(line, CUSTOM_PACKET_FACTORY);\n\n        if (packet.sentenceId === \"LOG\") {\n            console.log(\"Got a log message:\", packet.logMsg);\n        }\n\n    ...\n```\n\nMake sure not to conflict with built in sentence types!\n\nFor more info see **CustomPacketsTest.ts**\n\n### Unsafe packets\n\nIt might be desired to investigate packets that are not recognized or have bad checksum. (For example analyzing occurrence frequency.) For this we can use `parseUnsafeNmeaSentence`.\n\nThis function will parse every packet, even if the ID is unrecognized. `sentenceId` for these packets are always `?`.\n\n```js\n    try {\n        const packet = nmea.parseUnsafeNmeaSentence(line);\n\n        if (packet.chxOk !== true) {\n            console.log(\"Skipping packet with bad checksum:\");\n            return;\n        }\n\n        if (packet.sentenceId === \"?\") {\n            console.log(\"Got an unknown packet with signature:\", packet.fields[0]);\n        }\n\n    ...\n```\n\n## Acknowledgements\n\nThis module was based on the NPM [nmea](https://www.npmjs.com/package/nmea) and\n[nmea-0183](https://www.npmjs.com/package/nmea-0183) packages (with date decoding borrowed from [GPS](https://www.npmjs.com/package/gps)) and the\ndocumentation was expanded based on the excellent\n[analysis and descriptions](http://catb.org/gpsd/NMEA.html) by Eric S. Raymond.\n","readmeFilename":"README.md","gitHead":"a64dcce1d9133e913b81e29626db4623bb4accc7","_id":"nmea-simple@4.0.0-beta4","_nodeVersion":"14.21.2","_npmVersion":"8.19.2","dist":{"integrity":"sha512-5Yu0YzQyjNqfxyoKnfF0KwDkyvEI2O1CrhpjP2sYDHyr+4RCcxyo7VyBGXb1Oig++C3gg61yJ0ZGfJwZziAFwA==","shasum":"7ba60759b9866d9e416fb550dd8a7a7a46c67456","tarball":"https://registry.npmjs.org/nmea-simple/-/nmea-simple-4.0.0-beta4.tgz","fileCount":83,"unpackedSize":138310,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCxf0GgF+UFemAApYgoH6m27boM/0DtHHty/7i3nW57QIhALzAL1CFTPVcC5x7EBgfxrpEOvVcrvyffzkD54cqRAlp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvbCEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2Xg/+NX4i3sKSVw04bvLigrS0XsK81v1l0L8l2vHdeuYzBWCRNBVW\r\n6SZCwkIlGuVQmc5Bnjny2+lEjSUZUTD4hbg1CJGi1t0aOqALuQuTD9DLIKb5\r\nLKsFDR6x6J3YVklrXnpiIzHKn5QqfXQKuJXimpMnaMp+B/cSyx5NLuhE2qDx\r\nOwItMMzYRIgIGpRuV7WtqgpLaR/EqnhlSPPMCOnQUnnuMTr34pdKYsexSTyD\r\nUShK6TW4Vv7KaxdN06ZuMrbY5T62kxgIJRYVY5WREM3PB9rpGVqqigtikCgA\r\n8vfaWPDVSzXHcCAcQaOjmiQAy/FT1+7axmhJ5p4eP1wZNqsLqv+zcfoo5bRq\r\nWj4BU4Ws/J/HQOYE6q6lhlXWWexS5m1Ksncl8QZu/L8edPNEczIPwVE7YT9v\r\nxM9kdl8IEt3nVD9DKkZuKb2QkH3ISW/BPR0nJHNroHBeF2moig1Su+dOLJ8F\r\n+rk4w2aV17oiTmCIu0lAR+jylIQuSGyURQ91avFFe2nPyhsGQNNCVxn8/5js\r\n2h5/ZyTH6cAfrJJP8NQxuzsMTIUGR5MG3j8NOkeeR6v1Fcrs46YF8wWpfi0v\r\nUrcB07v45/Rtg0/8b4CBkbZO73WIjdFgejuFDf2U4GxxFyWRblIlFqqZsn7l\r\ngTbQe7pNqtZ+6cOKLKrbD7eJx5rASJBGn6M=\r\n=nTH0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"101100","email":"jasonpheard@gmail.com"},"directories":{},"maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nmea-simple_4.0.0-beta4_1673375876542_0.16880477570925834"},"_hasShrinkwrap":false}},"readme":"","maintainers":[{"name":"101100","email":"jasonpheard@gmail.com"}],"time":{"modified":"2023-01-10T18:37:56.827Z","created":"2015-12-27T18:46:03.885Z","1.0.0":"2015-12-27T18:46:03.885Z","2.0.0-beta":"2016-07-17T16:00:44.008Z","2.0.1-beta":"2016-07-17T17:03:09.389Z","2.0.2":"2016-08-21T17:45:44.262Z","2.0.4":"2016-08-21T18:24:14.015Z","2.0.5":"2016-08-21T18:27:14.874Z","2.1.0":"2016-10-01T16:04:08.731Z","2.2.0":"2017-06-04T14:58:26.399Z","2.3.0":"2017-09-15T15:55:20.154Z","2.4.0":"2018-11-24T16:47:28.072Z","3.0.0":"2020-01-17T22:39:17.341Z","3.1.0":"2020-04-03T20:30:51.381Z","3.1.1":"2020-04-03T20:34:45.668Z","3.2.0":"2020-04-06T18:02:27.425Z","4.0.0-beta1":"2022-03-27T17:26:35.528Z","4.0.0-beta2":"2022-03-27T17:43:41.325Z","4.0.0-beta3":"2022-03-27T17:46:51.486Z","3.3.0":"2023-01-10T18:27:24.373Z","4.0.0-beta4":"2023-01-10T18:37:56.707Z"},"homepage":"https://github.com/101100/nmea-simple","keywords":["nmea","0183","nmea-0183","gps","parser","typescript"],"repository":{"type":"git","url":"git+https://github.com/101100/nmea-simple.git"},"author":{"name":"Jason Heard","email":"jasonpheard@gmail.com"},"bugs":{"url":"https://github.com/101100/nmea-simple/issues"},"readmeFilename":"","license":"MIT","users":{"neolas":true}}