@lunasha/holidays

0.0.3 • Public • Published

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"]

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @lunasha/holidays

    Weekly Downloads

    1

    Version

    0.0.3

    License

    ISC

    Unpacked Size

    2.15 kB

    Total Files

    3

    Last publish

    Collaborators

    • lunasha