Skip to content

Commit 555905d

Browse files
davidcalhounDavid Calhoun
andauthored
chore: update deps (#50)
* chore: update minor/patch deps * upgrade major deps, remove rollup and old exports --------- Co-authored-by: David Calhoun <[email protected]>
1 parent 938b3a7 commit 555905d

File tree

10 files changed

+10135
-15412
lines changed

10 files changed

+10135
-15412
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.formatOnSave": true,
4+
"editor.formatOnPaste": false
5+
}

README.md

Lines changed: 30 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,8 @@ Note that TLEs should be updated at least daily to avoid drift in calculations.
2929

3030
More info on TLEs:
3131

32-
- [Two-line element set (Wikipedia)](https://en.wikipedia.org/wiki/Two-line_element_set)
33-
- [TLE details from CASTOR](http://castor2.ca/03_Mechanics/03_TLE/)
34-
35-
## Support for CommonJS (e.g. Node <=12)
36-
37-
If you are using an older version of Node or a package that doesn't yet have ES Module support (and are getting the error `ERR_REQUIRE_ESM`), you will need to point to the special CommonJS build target. Simply change the `import` format in the following examples to this `require` format:
38-
39-
```diff
40-
-import { getLatLngObj } from "tle.js";
41-
+const { getLatLngObj } = require("tle.js/dist/tlejs.cjs");
42-
```
43-
44-
## Support for Node 9 and older
45-
46-
Please install `tle.js` version '3.x.x':
47-
48-
```bash
49-
npm i tle.js@3
50-
```
32+
- [Two-line element set (Wikipedia)](https://en.wikipedia.org/wiki/Two-line_element_set)
33+
- [TLE details from CASTOR](http://castor2.ca/03_Mechanics/03_TLE/)
5134

5235
## Shared code
5336

@@ -267,7 +250,7 @@ Returns the [NORAD satellite catalog number](https://en.wikipedia.org/wiki/Satel
267250
Used since Sputnik was launched in 1957 (Sputnik's rocket was 00001, while Sputnik itself was
268251
00002).
269252

270-
- Range: 0 to 99999
253+
- Range: 0 to 99999
271254

272255
```js
273256
import { getCatalogNumber } from "tle.js";
@@ -289,9 +272,9 @@ getCOSPAR(tle);
289272

290273
Returns the satellite classification.
291274

292-
- 'U' = unclassified
293-
- 'C' = classified
294-
- 'S' = secret
275+
- 'U' = unclassified
276+
- 'C' = classified
277+
- 'S' = secret
295278

296279
```js
297280
import { getClassification } from "tle.js";
@@ -306,7 +289,7 @@ Launch year (last two digits) ([international designator](https://en.wikipedia.o
306289
Note that a value between 57 and 99 means the launch year was in the 1900s, while a value between
307290
00 and 56 means the launch year was in the 2000s.
308291

309-
- Range: 00 to 99
292+
- Range: 00 to 99
310293

311294
```js
312295
import { getIntDesignatorYear } from "tle.js";
@@ -319,7 +302,7 @@ getIntDesignatorYear(tle);
319302
Launch number of the year
320303
([international designator](https://en.wikipedia.org/wiki/International_Designator)), which makes up part of the COSPAR id.
321304

322-
- Range: 1 to 999
305+
- Range: 1 to 999
323306

324307
```js
325308
import { getIntDesignatorLaunchNumber } from "tle.js";
@@ -332,7 +315,7 @@ getIntDesignatorLaunchNumber(tle);
332315
Piece of the launch
333316
([international designator](https://en.wikipedia.org/wiki/International_Designator)), which makes up part of the COSPAR id.
334317

335-
- Range: A to ZZZ
318+
- Range: A to ZZZ
336319

337320
```js
338321
import { getIntDesignatorPieceOfLaunch } from "tle.js";
@@ -344,7 +327,7 @@ getIntDesignatorPieceOfLaunch(tle);
344327

345328
TLE epoch year (last two digits) when the TLE was generated.
346329

347-
- Range: 00 to 99
330+
- Range: 00 to 99
348331

349332
```js
350333
import { getEpochYear } from "tle.js";
@@ -357,7 +340,7 @@ getEpochYear(tle);
357340
TLE epoch day of the year (day of year with fractional portion of the day) when the TLE was
358341
generated.
359342

360-
- Range: 1 to 365.99999999
343+
- Range: 1 to 365.99999999
361344

362345
```js
363346
import { getEpochDay } from "tle.js";
@@ -382,7 +365,7 @@ two, measured in orbits per day per day (orbits/day<sup>2</sup>). Defines how me
382365
from day to day, so TLE propagators can still be used to make reasonable guesses when distant
383366
from the original TLE epoch.
384367

385-
- Units: Orbits / day<sup>2</sup>
368+
- Units: Orbits / day<sup>2</sup>
386369

387370
```js
388371
import { getFirstTimeDerivative } from "tle.js";
@@ -399,7 +382,7 @@ so software can make reasonable guesses when distant from the original TLE epoch
399382

400383
Usually zero, unless the satellite is manuevering or in a decaying orbit.
401384

402-
- Units: Orbits / day<sup>3</sup>
385+
- Units: Orbits / day<sup>3</sup>
403386

404387
```js
405388
import { getSecondTimeDerivative } from "tle.js";
@@ -414,7 +397,7 @@ Note: the original value in TLE is `00000-0` (= `0.0 x 10`<sup>`0`</sup> = `0`).
414397
[BSTAR](https://en.wikipedia.org/wiki/BSTAR) drag term. This estimates the effects of atmospheric
415398
drag on the satellite's motion.
416399

417-
- Units: EarthRadii<sup>-1</sup>
400+
- Units: EarthRadii<sup>-1</sup>
418401

419402
```js
420403
import { getBstarDrag } from "tle.js";
@@ -441,7 +424,7 @@ getOrbitModel(tle);
441424
TLE element set number, incremented for each new TLE generated since launch. 999 seems to mean the
442425
TLE has maxed out.
443426

444-
- Range: Technically 1 to 9999, though in practice the maximum number seems to be 999.
427+
- Range: Technically 1 to 9999, though in practice the maximum number seems to be 999.
445428

446429
```js
447430
import { getTleSetNumber } from "tle.js";
@@ -453,7 +436,7 @@ getTleSetNumber(tle);
453436

454437
TLE line 1 checksum (modulo 10), for verifying the integrity of this line of the TLE. Note that letters, blanks, periods, and plus signs are counted as 0, while minus signs are counted as 1.
455438

456-
- Range: 0 to 9
439+
- Range: 0 to 9
457440

458441
```js
459442
import { getChecksum1 } from "tle.js";
@@ -479,8 +462,8 @@ expectedChecksum === computedChecksum;
479462
equatorial plane in degrees. 0 to 90 degrees is a prograde orbit and 90 to 180 degrees is a
480463
retrograde orbit.
481464

482-
- Units: degrees
483-
- Range: 0 to 180
465+
- Units: degrees
466+
- Range: 0 to 180
484467

485468
```js
486469
import { getInclination } from "tle.js";
@@ -494,8 +477,8 @@ getInclination(tle);
494477
in degrees. Essentially, this is the angle of the satellite as it crosses northward (ascending)
495478
across the Earth's equator (equatorial plane).
496479

497-
- Units: degrees
498-
- Range: 0 to 359.9999
480+
- Units: degrees
481+
- Range: 0 to 359.9999
499482

500483
```js
501484
import { getRightAscension } from "tle.js";
@@ -509,7 +492,7 @@ getRightAscension(tle);
509492
All artificial Earth satellites have an eccentricity between 0 (perfect circle) and 1 (parabolic
510493
orbit).
511494

512-
- Range: 0 to 1
495+
- Range: 0 to 1
513496

514497
```js
515498
import { getEccentricity } from "tle.js";
@@ -524,8 +507,8 @@ Note that the value in the original TLE is `0006317`, with the preceding decimal
524507

525508
[Argument of perigee](https://en.wikipedia.org/wiki/Argument_of_perigee).
526509

527-
- Units: degrees
528-
- Range: 0 to 359.9999
510+
- Units: degrees
511+
- Range: 0 to 359.9999
529512

530513
```js
531514
import { getPerigee } from "tle.js";
@@ -538,8 +521,8 @@ getPerigee(tle);
538521
[Mean Anomaly](https://en.wikipedia.org/wiki/Mean_Anomaly). Indicates where the satellite was
539522
located within its orbit at the time of the TLE epoch.
540523

541-
- Units: degrees
542-
- Range: 0 to 359.9999
524+
- Units: degrees
525+
- Range: 0 to 359.9999
543526

544527
```js
545528
import { getMeanAnomaly } from "tle.js";
@@ -551,8 +534,8 @@ getMeanAnomaly(tle);
551534

552535
Revolutions around the Earth per day ([mean motion](https://en.wikipedia.org/wiki/Mean_Motion)).
553536

554-
- Units: revs per day
555-
- Range: 0 to 17 (theoretically)
537+
- Units: revs per day
538+
- Range: 0 to 17 (theoretically)
556539

557540
```js
558541
import { getMeanMotion } from "tle.js";
@@ -565,8 +548,8 @@ getMeanMotion(tle);
565548
Total satellite revolutions when this TLE was generated. This number seems to roll over (e.g.
566549
99999 -> 0).
567550

568-
- Units: revs
569-
- Range: 0 to 99999
551+
- Units: revs
552+
- Range: 0 to 99999
570553

571554
```js
572555
import { getRevNumberAtEpoch } from "tle.js";
@@ -578,7 +561,7 @@ getRevNumberAtEpoch(tle);
578561

579562
TLE line 2 checksum (modulo 10) for verifying the integrity of this line of the TLE.
580563

581-
- Range: 0 to 9
564+
- Range: 0 to 9
582565

583566
```js
584567
import { getChecksum2 } from "tle.js";

0 commit comments

Comments
 (0)