npm.io
1.0.0 • Published 6 years ago

tle2json

Licence
ISC
Version
1.0.0
Deps
1
Size
5 kB
Vulns
25
Weekly
0

Two Line Element to JSON (TLE2JSON)

This helps convert the two line element format to JSON.

Original

Transform

Usage

const TLE2JSON = require('TLE2JSON');

// This URL helps Track the Starlink and Falcon 9 Satellites
const data = await TLE2JSON.convert({
  url: 'https://celestrak.com/NORAD/elements/starlink.txt'
});

// Write output to a particular file
const data = await TLE2JSON.convert({
  url: 'https://celestrak.com/NORAD/elements/starlink.txt',
  path: '/Users/pwewe/data.json'
});

Parameters

  1. url : The url to the location of the Two line element set.
  2. path : The location to where the file should be written to.

Algorithm

https://en.wikipedia.org/wiki/Two-line_element_set

Keywords