1.0.0 • Published 4 years ago

tle2json v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

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