IndiaHoliday-npmPackage
A simple package to get information about Indian holidays. Whether you're planning your vacation or checking today's holiday, this package has you covered!
π₯ Inspiration
This package was built with the help of Web Dev Simplified. Check out the tutorial I followed:
Web Dev Simplified - YouTube
π Installation
To install the package, simply run the following command:
npm install india-holiday-1.0
π οΈ Usage
Once installed, you can use this package in your Node.js project to check for holidays. Hereβs a quick example:
const getHolidayMessage = require('india-holiday-1.0'); // Replace with your package name
// Test with a holiday date
console.log(getHolidayMessage('2024-01-26', true)); // Should return "Happy Republic Day,"
// Test with a non-holiday date
console.log(getHolidayMessage(new Date(), true)); // Should return "Welcome,"
console.log(getHolidayMessage('false' , true)); // Should return Error,
π» Features
- Get today's holiday in India.
- Check if today is a holiday.
- Easy to use and integrate with your Node.js projects.
- Get color Gradient of India Flag.
Made with β€οΈ by Sanskar