1.0.5 • Published 5 years ago

@michaeljacquemart/holidate v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

holidate

Command line tool that will verify the given parameter is a well-formatted country name, transform it into a two-letters country code, then perform an HTTP request to the API of the nager.date service, returning all official holidays in that country. You can add the year as a second parameter to the command line, as such ;

$ npx @michaeljacquemart/holidate [country] [year]

indicates that the argument is optional. The default value is the current year.

Install

Prerequisites : Node.js and npm

Simply go to the official Node.JS website and follow the instructions (for Ubuntu/Debian, the instructions are here).

used npm packages (you don't have to manually install them)

country-list, to convert the country name onto a country code

axios, to perform HTTP requests

chalk, to add some colors in your terminal

figlet, add some style to your terminal

And finally...

run the following command line ;

$ npm i @michaeljacquemart/holidate

...You are ready to go !

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago