@arevs/astronomy
v0.1.21
Published
Astronomy helpers for the @arevs data packages
Readme
@arevs/astronomy
Lightweight astronomy helpers for moon phases and hemisphere-aware seasons.
Install
npm install @arevs/astronomyWhat it includes
moonPhasesgetMoonPhase()getMoonPhaseFraction()getMoonIllumination()getSeason()
Usage
import {
moonPhases,
getMoonPhase,
getMoonIllumination,
getSeason,
} from "@arevs/astronomy";
const phase = getMoonPhase(new Date());
const illumination = getMoonIllumination(new Date());
const season = getSeason(new Date("2026-06-21"), "north");Docs: https://arevdata.com/astronomy/sun-moon/
Repository: https://github.com/silvandiepen/arev
