🔄
Multi-Language Support
Identical core logic available for NodeJS (TypeScript), Python, and PHP projects.
A comprehensive library for working with Nepali (Bikram Sambat) dates in both NodeJS and Python.
| Feature | NodeJS Package | Python Package | PHP Package |
|---|---|---|---|
| Package Name | nepali-date-library | nepali-date-library | sghimire/nepali-date-library |
| Language | TypeScript / JavaScript | Python 3.x | PHP 7.1 - 8.5 |
| Import | import { NepaliDate } ... | from nepali_date_library ... | use NepaliDateLibrary\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 sghimire/nepali-date-library
use NepaliDateLibrary\NepaliDate;
$date = new NepaliDate();
echo $date->format("YYYY-MM-DD"); // 2082-10-01Comprehensive guide for web and server-side JS/TS environments.
View NodeJS Docs →Detailed documentation for PHP library usage, including Laravel and Symfony integration.
View PHP Docs →