# @tubular/astronomy

> Astronomical calculations for planetary positions, moon phases, eclipses, rise, transit, and set times, and more.

Latest version **3.5.6** (published 2025-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tubular/astronomy
pnpm add @tubular/astronomy
yarn add @tubular/astronomy
bun add @tubular/astronomy
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 3.5.6 |
| Published | 2025-09-21 |
| First published | 2020-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10.24.1 |
| Dependencies | 4 |
| Unpacked size | 7.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Kerry Shetline |
| Maintainers | kshetline |
| Keywords | asteroids, astronomy, calendar, comets, eclipses, equinox, grs, moon, planets, solar, solstice, stars, sunrise, sunset |

## Links

- npm: https://www.npmjs.com/package/@tubular/astronomy
- Repository: https://github.com/kshetline/tubular_astronomy
- Homepage: https://github.com/kshetline/tubular_astronomy#readme
- Issues: https://github.com/kshetline/tubular_astronomy/issues
- npm.io page: https://npm.io/package/@tubular/astronomy

## Dependencies (4)

- [@tubular/math](https://npm.io/package/@tubular/math.md) ^3.4.2
- [@tubular/time](https://npm.io/package/@tubular/time.md) ^3.10.5
- [@tubular/util](https://npm.io/package/@tubular/util.md) ^4.18.2
- [@tubular/array-buffer-reader](https://npm.io/package/@tubular/array-buffer-reader.md) ^3.0.4

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.5.6 (latest) — 2025-09-21
- 3.5.5 — 2025-09-08
- 3.5.4 — 2025-08-04
- 3.5.3 — 2025-02-05
- 3.5.2 — 2025-02-04
- 3.5.1 — 2023-04-01
- 3.5.0 — 2022-11-06
- 3.4.4 — 2022-11-04
- 3.4.3 — 2022-11-04
- 3.4.2 — 2022-11-04
- 3.4.1 — 2022-11-04
- 3.4.0 — 2022-11-03
- 3.3.2 — 2022-10-16
- 3.3.1 — 2022-09-25
- 3.3.0 — 2022-05-28
- … 46 more at https://npm.io/package/@tubular/astronomy/versions

## README

## @tubular/astronomy

This package provides many astronomical calculations for sun, moon, and planets, including rise and set times, eclipse info, positions of the moons of Jupiter and Saturn, equinoxes and solstices, etc.

Coupled with an appropriate data service, it can also provide a star catalog, the position of Jupiter's Great Red Spot, and comet and asteroid positions.

## Build

Run `npm run build` to build the project. The build artifacts will be stored in the `dist/` directory.

## Running unit tests

Run `npm run test` to execute the unit tests.

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