0.0.3 • Published 2 years ago
@lunasha/holidays v0.0.3
Holidays NPM
Luna Muylkens
Github : https://github.com/LunashaGit NPM : https://www.npmjs.com/package/@lunasha/holidays
Technology are used?
Javascript NodeJS Axios (NPM) Country-List (NPM) Nager API
How to install ?
npm i @lunasha/holidays
How use the command ?
npx holidays Country Year
Example :
npx holidays United states of america 2022
Logic ?
Holidays => CLI Country => Var ( => Country-List NPM for take the country Code ) Year => Var
Axios GET API => Nager With the API URL NAGER => Transform Year and Country ForEach Date => It gives me the Name and the Date
Holidays country year CLI Parameter Parameter
How space isn't an error ?
Simple:
.join() Element => Table => Ouput Element with Space => Ex : "United States of america"