Two-line element set (TLE) data format parser
A two-line element set (TLE) is a data format used to convey sets of orbital elements that describe the orbits of Earth-orbiting satellites. A computer program called a model can use the TLE to compute the position of a satellite at a particular time. The TLE is a format specified by NORAD and used by NORAD and NASA. The TLE can be used directly by the SGP4 model (or one of the SGP8, SDP4, SDP8 models). Orbital elements are determined for many thousands of space objects by NORAD and are freely distributed on the Internet in the form of TLEs. A TLE consists of a title line followed by two lines of formatted text.
— From Wikipedia
$ npm install --save tle
More, detailed information is available at NASA Human Space Flight:
var TLE =
var set = 'ISS (ZARYA)\n' +'1 25544U 98067A 08264.51782528 -.00002182 00000-0 -11606-4 0 2927\n' +'2 25544 51.6416 247.4627 0006703 130.5360 325.0288 15.72125391563537'
var tle = TLE
TLEname: 'ISS (ZARYA)'number: 25544class: 'U'id: '98067A'date: Date<'2008-09-20T12:25:40.104Z'>fdmm: -000002182sdmm: 0drag: -11606ephemeris: 0esn: 292inclination: 516416ascension: 2474627eccentricity: 00006703perigee: 130536anomaly: 3250288motion: 15721253915revolution: 6353
var parser = options // ORvar parser = TLE
// From a JSON stringvar tle = TLE
// From an objectvar tle = TLE
It can read, stream & parse ~2500 TLEs from the file system in about 100ms.
node example/fs-stream.jsParser: 2517 TLEs, 108ms, 23306 op/sParser: 23 op/ms
examples folder for runnable examples:
node examples/fs-stream.jsnode examples/http-stream.js