🔄
Multi-Language Support
Identical core logic available for both NodeJS (TypeScript) and Python projects.
A comprehensive library for working with Nepali (Bikram Sambat) dates in both NodeJS and Python.
| Feature | NodeJS Package | Python Package | PHP Package (Coming Soon) |
|---|---|---|---|
| Package Name | nepali-date-library | nepali-date-library | nepali-date-library |
| Language | TypeScript / JavaScript | Python 3.x | PHP 8.x |
| Import | import { NepaliDate } ... | from nepali_date_library ... | use NepaliDate\ ... |
| Main Use | Web Apps, React, Vue, Backend | Data Processing, Scripts, Django, Flask | Laravel, Symfony, APIs |
// npm install nepali-date-library
import { NepaliDate } from "nepali-date-library";
const date = new NepaliDate();
console.log(date.format("YYYY-MM-DD")); // 2082-10-01# pip install nepali-date-library
from nepali_date_library import NepaliDate
date = NepaliDate()
print(date.format("YYYY-MM-DD")) # 2082-10-01// composer require sandip-ghimire/nepali-date-library
// Stay tuned for the PHP version!Comprehensive guide for web and server-side JS/TS environments.
View NodeJS Docs →Support for PHP projects and Laravel integration is on the way.