Lightweight, powerful JavaScript Nepali date picker with zero dependencies.
- 🎯 Single & Multiple Selection - Basic and multiple date modes
- 🌍 Bilingual - English & Nepali support
- 🎨 Themeable - 3 themes + dark mode
- 📅 Smart Constraints - Min/max dates, disable specific dates
- 🪂 Lightweight - ~26KB minified (JS only)
- 🚫 No Dependencies - Zero external libraries
- ⚡ Framework Compatible - Vue, React, Angular, Alpine, Livewire
- 🔊 DOM Events - Native
input,change, and custom events - 📱 Responsive - Works on all devices
npm install @anuz-pandey/nepali-date-picker<div style="position: relative;">
<input type="text" id="date-picker">
</div>
<script src="path/to/nepali-date-picker.bundle.js"></script>
<script>
new NepaliDatePicker('#date-picker');
</script>new NepaliDatePicker('#date-picker', {
format: 'YYYY-MM-DD',
mode: 'basic', // or 'multiple'
locale: 'np', // or 'en'
theme: 'flat', // or 'soft', 'bordered'
darkMode: false,
minDate: '2082-01-01',
maxDate: '2082-12-31'
});document.getElementById('date-picker').addEventListener('nepali-date-change', (e) => {
console.log('Selected date:', e.detail.date);
console.log('Parsed date:', e.detail.dateObject);
});Full documentation is available in the /docs folder:
| Document | Purpose |
|---|---|
| 📖 Quick Start | Get started in 5 minutes |
| 💾 Installation | NPM, CDN, and standalone options |
| 🔧 API Reference | All configuration options and methods |
| 📝 Examples | Code samples for common use cases |
| 🗺️ Features | Complete feature roadmap |
| 🤝 Contributing | Report bugs and request features |
new NepaliDatePicker('#date-picker', {
mode: 'multiple',
selectedDatesFormat: 'comma'
});new NepaliDatePicker('#date-picker', {
minDate: '2082-01-01',
maxDate: '2082-12-31'
});new NepaliDatePicker('#date-picker', {
disableDates: ['2082-01-26', '2082-02-19'],
disableBeforeToday: true
});Works seamlessly with Vue, React, Angular, Alpine.js, Livewire, and more. See documentation for framework-specific examples.
npm install @anuz-pandey/nepali-date-picker
# or
yarn add @anuz-pandey/nepali-date-picker<script src="https://cdn.jsdelivr.net/npm/@anuz-pandey/nepali-date-picker/dist/nepali-date-picker.bundle.min.js"></script>
<!-- OR separate files -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@anuz-pandey/nepali-date-picker/dist/nepali-date-picker.min.css">
<script src="https://cdn.jsdelivr.net/npm/@anuz-pandey/nepali-date-picker/dist/nepali-date-picker.min.js"></script>Download the latest release and extract:
<link rel="stylesheet" href="dist/nepali-date-picker.min.css">
<script src="dist/nepali-date-picker.bundle.js"></script>We welcome your feedback!
- Report bugs - Open an issue
- Request features - Describe your idea in an issue
- Ask questions - Use GitHub Discussions
See CONTRIBUTING.md for more information.
MIT License - feel free to use in your projects
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Full Docs
Made with ❤️ by Anuz Pandey
