Community-driven, accurate Nepali calendar data for developers worldwide
101 years (BS 2000-2100) of verified calendar data from official sources
Lightweight and reliable with no external dependencies
Full TypeScript support with comprehensive type definitions
JSON data accessible from Python, PHP, Ruby, Go, and more
>95% test coverage with 1400+ passing tests
Open data sources and transparent validation process
Get started with just a few lines of code
// Install
npm install nepali-dates
// Import
import { bsToAd, adToBs, getTotalDaysInMonth } from 'nepali-dates';
// Convert Nepali date to English date
const englishDate = bsToAd(2080, 10, 15);
console.log(englishDate); // { year: 2024, month: 1, day: 27 }
// Convert English date to Nepali date
const nepaliDate = adToBs(2024, 1, 27);
console.log(nepaliDate); // { year: 2080, month: 10, day: 15 }
// Get days in a Nepali month
const days = getTotalDaysInMonth(2080, 1);
console.log(days); // 31
Access calendar data from your favorite programming language
Load JSON data with Python's built-in json module
Parse with json_decode for easy integration
Use JSON.parse to access calendar data
Decode with encoding/json package
Import with Jackson or Gson libraries
Deserialize with serde_json crate