MeeusSunMoon icon indicating copy to clipboard operation
MeeusSunMoon copied to clipboard

General Feedback and Input Validation

Open saturdaywalkers opened this issue 7 months ago • 0 comments

There are quite a few nodejs astronomy packages. Chose this one because of your notes about accuracy.

Had a lot of frustration at the start, lat/lon's I was using were strings rather than numbers, but the error messages weren't obvious.

May I suggest validating if input is a number, and either silently converting it or an "lat/lon is not a number" error message

Also, an example of "js date" => "luxon date" => sunrise date => "js date" would help (as hadn't come across the luxon date package before)

Thanks for all the work!

saturdaywalkers avatar Jul 24 '24 08:07 saturdaywalkers