Installation
Install Nepali Date Library in your project using your preferred package manager across Node.js, Python, or PHP.
Install the Nepali Date Library across your stack. Select your package manager below for quick copy-paste commands.
Node.js / TypeScript
Install nepali-date-library via pnpm, npm, yarn, or bun:
pnpm add nepali-date-libraryVerify Installation
import { NepaliDate } from "nepali-date-library";
const today = new NepaliDate();
console.log(today.format("YYYY-MM-DD"));Python
Install nepali-date-library via pip, uv, or poetry:
pip install nepali-date-libraryVerify Installation
from nepali_date import NepaliDate
today = NepaliDate.today()
print(today.format("%Y-%m-%d"))PHP
Install sghimire/nepali-date-library via Composer:
composer require sghimire/nepali-date-libraryVerify Installation
<?php
require 'vendor/autoload.php';
use NepaliDate\NepaliDate;
$today = new NepaliDate();
echo $today->format('Y-m-d');Ecosystem Registries
| Environment | Package Name | Registry |
|---|---|---|
| Node.js / TypeScript | nepali-date-library | npmjs.com/package/nepali-date-library |
| Python | nepali-date-library | pypi.org/project/nepali-date-library |
| PHP | sghimire/nepali-date-library | packagist.org/packages/sghimire/nepali-date-library |
Advertisement
Project Overview
Comprehensive overview of the Nepali Date Library multi-language ecosystem, live package metrics, architecture, and developer profile.
Examples & Practical Recipes
Real-world patterns and cross-language code recipes for working with Nepali dates.