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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sl-code-lords/holidays

v1.0.0

Published

generate holidays in a specific year using JavaScript

Downloads

15

Readme

Status GitHub Issues GitHub Pull Requests License


📝 Table of Contents

🧐 About

generate holidays in a specific year using JavaScript

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes

Installing

yarn add @sl-code-lords/holidays

or

npm i @sl-code-lords/holidays

🎈 Usage

const Holidays = require('@sl-code-lords/holidays')
const country_list = require('@sl-code-lords/holidays/lib/country_list')

const api = new Holidays(2023)

get holidays

var holidays = await api.sri_lanka()
   console.log(holidays)
{
  January: [
    {
      date: '06',
      Day: 'Friday',
      Holiday_Name: 'Duruthu Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '15',
      Day: 'Sunday',
      Holiday_Name: 'Tamil Thai Pongal Day',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '16',
      Day: 'Monday',
      Holiday_Name: 'Special Bank Holiday Holiday',
      Type: 'Not A Public Holiday',
      Comments: 'Banks'
    }
  ],
  February: [
    {
      date: '04',
      Day: 'Saturday',
      Holiday_Name: 'National Day',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '05',
      Day: 'Sunday',
      Holiday_Name: 'Navam Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '18',
      Day: 'Saturday',
      Holiday_Name: 'Mahasivarathri Day',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  March: [
    {
      date: '06',
      Day: 'Monday',
      Holiday_Name: 'Madin Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  April: [
    {
      date: '05',
      Day: 'Wednesday',
      Holiday_Name: 'Bak Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '07',
      Day: 'Friday',
      Holiday_Name: 'Good Friday',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '13',
      Day: 'Thursday',
      Holiday_Name: 'Sinhala and Tamil New Year Eve',
      Type: 'National Holiday',
      Comments: 'Puthandu'
    },
    {
      date: '14',
      Day: 'Friday',
      Holiday_Name: 'Sinhala and Tamil New Year',
      Type: 'National Holiday',
      Comments: 'Puthandu'
    },
    {
      date: '22',
      Day: 'Saturday',
      Holiday_Name: 'Id-Ul-Fitr',
      Type: 'National Holiday',
      Comments: 'Ramazan Festival Day'
    }
  ],
  May: [
    {
      date: '01',
      Day: 'Monday',
      Holiday_Name: 'Labour Day',
      Type: 'National Holiday',
      Comments: "International Workers' Day"
    },
    {
      date: '05',
      Day: 'Friday',
      Holiday_Name: 'Vesak Full Moon Poya',
      Type: 'National Holiday',
      Comments: 'Birth of Buddha'
    },
    {
      date: '06',
      Day: 'Saturday',
      Holiday_Name: 'Vesak Full Moon Poya Holiday',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  June: [
    {
      date: '03',
      Day: 'Saturday',
      Holiday_Name: 'Poson Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '29',
      Day: 'Thursday',
      Holiday_Name: 'Idul Adha',
      Type: 'National Holiday',
      Comments: 'Hajjhi Festival Day'
    },
    {
      date: '30',
      Day: 'Friday',
      Holiday_Name: 'Special Bank Holiday',
      Type: 'Not A Public Holiday',
      Comments: 'Banks'
    }
  ],
  July: [
    {
      date: '03',
      Day: 'Monday',
      Holiday_Name: 'Esala Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  August: [
    {
      date: '01',
      Day: 'Tuesday',
      Holiday_Name: 'Nikini Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '30',
      Day: 'Wednesday',
      Holiday_Name: 'Adhi Nikini Full Moon Poya',
      Type: 'National Holiday',
      Comments: 'Second full moon in August'
    }
  ],
  September: [
    {
      date: '28',
      Day: 'Thursday',
      Holiday_Name: 'Milad-Un-Nabi',
      Type: 'National Holiday',
      Comments: 'Birthday of Prophet Muhammad'
    },
    {
      date: '29',
      Day: 'Friday',
      Holiday_Name: 'Binara Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  October: [
    {
      date: '28',
      Day: 'Saturday',
      Holiday_Name: 'Vap Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  November: [
    {
      date: '12',
      Day: 'Sunday',
      Holiday_Name: 'Deepavali Festival Day',
      Type: 'National Holiday',
      Comments: 'Dewali'
    },
    {
      date: '26',
      Day: 'Sunday',
      Holiday_Name: 'Ill Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    }
  ],
  December: [
    {
      date: '25',
      Day: 'Monday',
      Holiday_Name: 'Christmas Day',
      Type: 'National Holiday',
      Comments: ''
    },
    {
      date: '26',
      Day: 'Tuesday',
      Holiday_Name: 'Unduvap Full Moon Poya',
      Type: 'National Holiday',
      Comments: ''
    }
  ]
}

✍️ Authors

See also the list of contributors who participated in this project.