solarlunar
Solarlunar is a lightweight open-source JavaScript library that provides conversion between the solar (Gregorian) calendar and the traditional Chinese lunar calendar. It is designed to help software applications display or work with dates in either system, and to support commonly used operations such as determining the corresponding lunar date for a given Gregorian date, and converting a lunar date back to a Gregorian date.
The core functionality centers on two primary operations: solarToLunar and lunarToSolar. SolarToLunar accepts a year, month,
Solarlunar is commonly used in web applications and Node.js environments that need to display lunar dates for
Limitations can include reliance on a fixed data set for lunar rules, which may vary by region