@michaeljacquemart/holidate

1.0.5 • Public • Published

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 !

Readme

Keywords

none

Package Sidebar

Install

npm i @michaeljacquemart/holidate

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

3.52 kB

Total Files

3

Last publish

Collaborators

  • michaeljacquemart