Calculate Phase of the Moon for a Date
You want to find the current phase of the moon.
The following code provides a method to calculate the phase of the moon for a given date.
This code exposes a MoonPhase Calculator object with two methods. Calculator -> getMoonPhase will return a text representation of the lunar phase for the date provided.
This can be used in both the browser and Node.js.