A comprehensive Nepali date manipulation library for Deno. This library provides utilities for working with Nepali (Bikram Sambat) dates, including formatting, conversion, and date arithmetic.
- Format Nepali dates with various patterns
- Convert between Nepali and Gregorian dates
- Date arithmetic operations
- Supports both English and Nepali languages
- Zero dependencies
- Tree-shakeable exports
- Type-safe with TypeScript
import { formatNepaliDate } from "@saurab/nepali-date";
console.log(formatNepaliDate(2071, 1, 30));
// returns "२०७१-०१-३०"
import { validateNepaliDate } from "@saurab/nepali-date";
validateNepaliDate(2071, 1, 222); // throws error if date is invalid
import { compareNepaliDates } from "@saurab/nepali-date";
compareNepaliDates(2071, 1, 20, 2071, 1, 30); // return -10
This project is licensed under the MIT License - see the LICENSE file for details.