@kezzouraphael/hamilton-6-holidates-kezzouraphael
v1.0.2
Published
Node exercice
Downloads
3
Readme
Holidates
Table of contents
General info
This holidates project's purpose is to display to the user the public holiday of a country and their respective dates.
Technologies
This project is build with:
- node.js
- npm
Setup
To run this project, make sure you have the latest version of node.js and npm installed :
$ npm install -g npm@latest
By adding the n module, you can interactively manage Node.js versions.
- First, clear the npm cache:
$ npm cache clean -f
- Install n, Node’s version manager:
$ npm install -g n
- With the n module installed, you can use it to:
- Install the latest stable version:
$ sudo n stable
Note: Some Ubuntu distros may respond with the command not found output after running the n command. To fix this issue run sudo -E env "PATH=$PATH" [command]. For example, to install the latest stable version, as in the example above, you would run sudo -E env "PATH=$PATH" n stable.
- Install the latest release:
$ sudo n latest
- Install a specific version:
$ sudo n [version.number]
Then you can install the package there :
$ npm i @kezzouraphael/hamilton-6-holidates-kezzouraphael
Usage
$ holidates [country-name] [year]
NB : You can put your country name into " " or without example :
$ holidates United states of america 1999
// ===
$ holidates "United States of America" 1999
The only thing you have to pay attention to are the spaces they're required you can't put :
$ holidates unitedstatesofamerica 1999
Contributor
- Kezzou Raphael
License
This project is under the MIT license