bsday.js launches as a modern JavaScript library for Nepal's Bikram Sambat calendar
A new open-source JavaScript and TypeScript library called bsday.js has been released to simplify working with Nepal's Bikram Sambat (BS) calendar system. The library offers zero external dependencies, a roughly 12KB gzipped core package, and an API designed to feel familiar to developers who have used Day.js or Moment.js. It supports bidirectional conversion between BS and Gregorian dates, Devanagari numeral parsing, and a 111-year astronomical dataset spanning 1990 to 2100 BS. The ecosystem includes dedicated packages for React, Vue 3, Angular, and Svelte, each providing headless UI components and framework-native patterns. The library also addresses Nepal-specific needs such as fiscal year calculations, banking workday logic, KYC age verification, and localized Nepali date formatting.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in