ended3월 21일· 1 sources
Bringing History to the Modern Web: Introducing moment-shahanshahi for JavaScript & React 👑
역사를 현대 웹으로: JavaScript & React용 moment-shahanshahi 소개
Why it matters
The author introduces moment-shahanshahi, a lightweight npm package that integrates the Iranian Imperial (Shahanshahi) calendar into JavaScript and React applications. Built on top of moment-jalaali, it adds custom year tokens (sYYYY/sYY) and a React component, converting Jalaali years to the Imperial era by adding 1,180 years. The package is open-source and maintains full accuracy by leveraging existing Jalaali astronomical calculations.
1
Sources
+0
24h
—
Growth
184d
Active
moment-shahanshahiShahanshahi Calendarmoment-jalaaliReactSolar Hijrinpm