# tle2json

> A script to convert Two Line Element sets to JSON

Latest version **1.0.0** (published 2020-05-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install tle2json
pnpm add tle2json
yarn add tle2json
bun add tle2json
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-05-16 |
| First published | 2020-05-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Obba Paschal |
| Maintainers | paschal |
| Keywords | satellites, nasa, starlink, falcon9 |

## Links

- npm: https://www.npmjs.com/package/tle2json
- npm.io page: https://npm.io/package/tle2json

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.19.2

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-05-16

## README

# Two Line Element to JSON (TLE2JSON) 🚴🏾‍♀️

This helps convert the two line element format to JSON.

![Original](https://res.cloudinary.com/pbaba/image/upload/v1589652610/Screenshot_2020-05-16_at_7.02.18_PM_md6ktx.png)

![Transform](https://res.cloudinary.com/pbaba/image/upload/v1589652604/Screenshot_2020-05-16_at_6.44.58_PM_b45huo.png)

# Usage

```js
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

---
_Source: https://npm.io/package/tle2json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
