๐Ÿ‡ณ๐Ÿ‡ต Nepali Dates

Community-driven, accurate Nepali calendar data for developers worldwide

Zero Dependencies TypeScript 101 Years Data Multi-Language

Why Nepali Dates?

โœ“

Accurate Data

101 years (BS 2000-2100) of verified calendar data from official sources

โšก

Zero Dependencies

Lightweight and reliable with no external dependencies

๐Ÿ”’

Type-Safe

Full TypeScript support with comprehensive type definitions

๐ŸŒ

Multi-Language

JSON data accessible from Python, PHP, Ruby, Go, and more

๐Ÿงช

Well-Tested

>95% test coverage with 1400+ passing tests

๐Ÿ‘ฅ

Community-Driven

Open data sources and transparent validation process

Quick Start

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

Use in Any Language

Access calendar data from your favorite programming language

๐Ÿ Python

Load JSON data with Python's built-in json module

๐Ÿ˜ PHP

Parse with json_decode for easy integration

๐Ÿ’Ž Ruby

Use JSON.parse to access calendar data

๐Ÿ”ท Go

Decode with encoding/json package

โ˜• Java

Import with Jackson or Gson libraries

โšก Rust

Deserialize with serde_json crate

View JSON Data

By the Numbers

101
Years of Data
1400+
Tests Passing
0
Dependencies
<10KB
Bundle Size