-
Notifications
You must be signed in to change notification settings - Fork 1
getMoonPhase
github-actions[bot] edited this page May 30, 2026
·
1 revision
moon-sighting / getMoonPhase
getMoonPhase(
date?):MoonPhaseResult
Defined in: api/index.ts:487
Compute the Moon's current phase, illumination, and next phase times.
Works WITHOUT a kernel (uses Meeus approximation).
Date = ...
Date to compute phase for (default: now)
MoonPhaseResult with illumination, phase name, age, and next events
const phase = getMoonPhase(new Date())
console.log(phase.phase) // 'waxing-crescent'
console.log(phase.phaseName) // 'Waxing Crescent'
console.log(phase.phaseSymbol) // '🌒'
console.log(phase.illumination)// 14.3 (percent)
console.log(phase.nextFullMoon)// Date objectmoon-sighting · MIT License · npm · Issues
Guides
Examples
API Reference
- getMoonSightingReport
- getMoonPhase
- getMoonPosition
- getMoonIllumination
- getMoonVisibilityEstimate
- getMoon
- getSunMoonEvents
- initKernels
- downloadKernels
- verifyKernels
Domain Reference
Package Reference
Community