Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@tubular/astronomy

kshetline50MIT3.5.1TypeScript support: included

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

asteroids, astronomy, calendar, comets, eclipses, equinox, grs, moon, planets, solar, solstice, stars, sunrise, sunset

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.