1.0.1 ā€¢ Published 3 years ago

@anonymouse97/holidates v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Holidates by Samuel

Hello and welcome to my first npm package !

What is it ?

This npm package is a small holidays displayer, using the nager API.

How to install ?

To install it you can use npm:

$ npm i @anonymouse97/holidates

How to use it ?

Once it's installed you can huse Holidates like that :

  • If you need the holidays in the current year for a specific country :

    $ holidates Belgium

    and it will return you this :

  _   _       _ _     _       _
 | | | | ___ | (_) __| | __ _| |_ ___  ___
 | |_| |/ _ \| | |/ _` |/ _` | __/ _ \/ __|
 |  _  | (_) | | | (_| | (_| | ||  __/\__ \
 |_| |_|\___/|_|_|\__,_|\__,_|\__\___||___/

Welcome to holidates šŸ‘‹ !

Here are the Holidays for Belgium in 2021 !

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
ā”‚       (index)        ā”‚    Values    ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚    New Year's Day    ā”‚ '2021-01-01' ā”‚
ā”‚    Easter Sunday     ā”‚ '2021-04-04' ā”‚
ā”‚    Easter Monday     ā”‚ '2021-04-05' ā”‚
ā”‚      Labour Day      ā”‚ '2021-05-01' ā”‚
ā”‚    Ascension Day     ā”‚ '2021-05-13' ā”‚
ā”‚     Whit Monday      ā”‚ '2021-05-24' ā”‚
ā”‚ Belgian National Day ā”‚ '2021-07-21' ā”‚
ā”‚    Assumption Day    ā”‚ '2021-08-15' ā”‚
ā”‚   All Saints' Day    ā”‚ '2021-11-01' ā”‚
ā”‚    Armistice Day     ā”‚ '2021-11-11' ā”‚
ā”‚    Christmas Day     ā”‚ '2021-12-25' ā”‚
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”“ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜
  • If you want a specific year :

    $ holidates Belgium 1980

    and it will return you this :

  _   _       _ _     _       _
 | | | | ___ | (_) __| | __ _| |_ ___  ___
 | |_| |/ _ \| | |/ _` |/ _` | __/ _ \/ __|
 |  _  | (_) | | | (_| | (_| | ||  __/\__ \
 |_| |_|\___/|_|_|\__,_|\__,_|\__\___||___/

Welcome to holidates šŸ‘‹ !

Here are the Holidays for Belgium in 1980 !

ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¬ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
ā”‚       (index)        ā”‚    Values    ā”‚
ā”œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¤
ā”‚    New Year's Day    ā”‚ '1980-01-01' ā”‚
ā”‚    Easter Sunday     ā”‚ '1980-04-06' ā”‚
ā”‚    Easter Monday     ā”‚ '1980-04-07' ā”‚
ā”‚      Labour Day      ā”‚ '1980-05-01' ā”‚
ā”‚    Ascension Day     ā”‚ '1980-05-15' ā”‚
ā”‚     Whit Monday      ā”‚ '1980-05-26' ā”‚
ā”‚ Belgian National Day ā”‚ '1980-07-21' ā”‚
ā”‚    Assumption Day    ā”‚ '1980-08-15' ā”‚
ā”‚   All Saints' Day    ā”‚ '1980-11-01' ā”‚
ā”‚    Armistice Day     ā”‚ '1980-11-11' ā”‚
ā”‚    Christmas Day     ā”‚ '1980-12-25' ā”‚
ā””ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”“ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”˜

Extras

  • This exercise was done during my BeCode training.
  • I used axios, country-list and figlet to help me doing this small project.