npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rishovt/angular-nepali-datepicker

v1.0.4

Published

A lightweight Angular wrapper and fully customizable, non-typeable Nepali datepicker component for Angular with support for Unicode-rendered Nepali dates, BS↔AD conversion, and flexible date formats. Ideal for forms requiring calendar-based input with nat

Readme

A lightweight, customizable Angular wrapper, build around JS with support for Unicode-rendered Nepali dates for both Reactive Forms and ngModel and flexible date formats. Ideal for forms requiring calendar-based Nepali inputs as well as AD-BS and BS-AD conversions. ( DEMO )

alt text

🏠 Homepage             ▶️ Live Demo

Prerequisites

To use @rishovt/angular-nepali-datepicker, make sure your project meets the following requirements

✅ Angular Compatibility

  • Supports both View Engine and Ivy compilation modes.

📦 Peer Dependencies Make sure the following are available in your project:

  • @angular/core
  • @angular/forms
  • zone.js
  • tslib

These are usually already installed in any standard Angular app.

✨ Features

  • 📅 Nepali Date Support: Handle dates as both JavaScript objects and strings seamlessly.
  • 🔀 Dual Build Support: Compatible with both Angular View Engine and Ivy compilation modes.
  • 🔄 Date Conversion: Easily convert dates between Bikram Sambat (BS) and Gregorian (AD) calendars.
  • 🛠️ Custom Date Formats: Flexible configuration to display dates in your preferred formats.
  • ✅ Angular Forms Integration: Full support for both reactive and template-driven forms.
  • ⚙️ Additional Utilities: Includes handy functions like number-to-word conversion, Unicode handling, and more.
  • 🎯 Easy to Use: Designed with simplicity in mind for quick integration and minimal setup.
  • 📱 Responsive & Lightweight: Optimized for performance and mobile-friendly design with Dark mode support
  • 🔧 Well-Maintained: Regular updates and active support to keep your app running smoothly.

💡 Installation

The package can be installed via npm:

npm i @rishovt/angular-nepali-datepicker --save

Or via yarn:

yarn add @rishovt/angular-nepali-datepicker

🚀 Usage

  1. 📦 Module Imports
import { RtcNepaliDatePickerModule } from '@rishovt/angular-nepali-datepicker';

@NgModule({
  imports: [
    RtcNepaliDatePickerModule
  ]
})
export class AppModule {}
  1. 🌐 Angular JSON

    You need to add the following to your angular.json file for the consumer to be able to know the js and css paths:

"assets": 
[
    {
        "input": "./node_modules/@rishovt/angular-nepali-datepicker/assets",
        "glob": "**/*",
        "output": "/assets"
    }
]
  1. 🧩 Component Usage
<rtc-nepali-datepicker
  *ngIf="datepickerOptions"
  [options]="datepickerOptions"
  [value]="selectedDate"
  [pickerId]="inputId"
  (dateChange)="onDateSelect($event)">
</rtc-nepali-datepicker>
inputId = 'nepali-datepicker'; // unique id for the datepicker, recommended to append with nepali-datepicker + randomId
public selectedDate: DateObject;
datepickerOptions = {
    classes: `form-control ${this.disabled ? 'np-date-picker-disabled' : ''}`,
    placeholder: "Select Date",
    dateFormat: 'YYYY-MM-DD',
    closeOnDateSelect: true,
    minDate: { year: 1800, month: 1, day: 1 },
    maxDate: null,
    disabled: false,
};

onDateSelect(event : DateObject) {
    this.selectedDate = event;
    console.log('Selected Date Object:', this.selectedDate);
}
  1. 🛠 Nepali Datepicker Service
import { NepaliDatepickerService } from '@rishovt/angular-nepali-datepicker';

constructor(private dateService: RtcNepaliDatepickerService) {}

private async basicNepaliDateService() {
    const bsDateObject: DateObject = await this.dateService.BSGetCurrentDate();
    const adDateObject: DateObject = await this.dateService.ADGetCurrentDate();
    console.log(bsDateObject); // e.g., { year: 2078, month: 10, day: 14, value: '2078-10-14' }
    console.log(adDateObject); // e.g., { year: 2022, month: 3, day: 14, value: '2022-03-14' }
    
    // Convert AD to BS, and vice versa
    const bsDateString: any = await this.nepaliService.AD2BS(this.adDateString, this.options.dateFormat);
    const adDateString: any = await this.nepaliService.BS2AD(this.bsDateString, this.options.dateFormat);
  }
  
private setDate(dateId: string, date: string) {
    this.nepaliService.setDate(this.inputId, bsDateString);
}

🙋‍♂️ About the Author

Made with ❤️ by Rishov Thapa I'm a passionate developer focused on building clean, efficient, and practical tools for real-world projects.
If you find this package helpful, feel free to:

  • ⭐ Star the repo to show support
  • 🤝 Connect with me on LinkedIn
  • 🧑‍💻 Follow me on GitHub
  • Buy me a coffee if you’d like to support future development

🙏 Credits

This library internally uses the JavaScript and CSS assets from sajanm/nepali-date-picker.
All credits for the original date picker logic and javascript goes to the original author.


This project is not affiliated with or endorsed by the original authors of the nepali-date-picker library.

🤝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

📝 License

Copyright © 2025 Rishov Thapa Chhetri [email protected]. This project is MIT licensed.