@thomasc93/holidates
v1.0.6
Published
Holidates allows you to get the holidays' names and date of any country and at any given year.
Downloads
8
Readme
holidays-CLI
Intro
Holidates allows you to get the holidays' names and date of any country and at any given year.
How to use
install the package with
npm i @thomasc93/holidates
Write this command line to get the holidays of a certain country of the current year.
npx holidates myCountry
For example :
npx holidates Belgium
If you want the holidays of a specific year, simply add it after the country :
npx holidates myCountry myYear
For example :
npx holidates Belgium 2017
Sources
How to parse command line arguments : https://nodejs.org/en/knowledge/command-line/how-to-parse-command-line-arguments/
Documentation on the date nager API: https://date.nager.at/Api
Documentation on the Country-List package: https://www.npmjs.com/package/country-list