← Projects
moon-sighting
Crescent moon visibility predictions backed by the bundled JPL DE442S ephemeris.
TypeScriptnpm
About
moon-sighting predicts crescent moon visibility for any location and date, backed by the bundled JPL DE442S ephemeris. Zero runtime dependencies — the ephemeris ships with the package.
Install
npm install moon-sightingQuick start
import { initKernels, getMoonSightingReport } from 'moon-sighting';
await initKernels();
const report = await getMoonSightingReport(new Date('2025-03-29'), {
lat: 51.5074, lon: -0.1278, elevation: 10,
});
console.log(report.yallop.category); // 'A' — easily visible to the naked eye
console.log(report.odeh.zone); // 'A' — visible with naked eye