1.1.1 • Published 4 years ago
@piralimic/holidates-cli v1.1.1
Node.JS: Holidates CLI
- NPM : @piralimic/holidates-cli
- Version : 1.1.1
- Author : Michaël Pirali
My first tool, with Node.JS
Description
A command line tool that take a country name as parameter and give the public holiday of the country for the current year
Installation
$ npm install @piralimic/holidates-cli
How to use
$ holidates country-name
Example of use :
$ holidates switzerland
2019-01-01 : New Year's Day 2019-01-02 : St. Berchtold's Day 2019-01-06 : Epiphany 2019-03-19 : Saint Joseph's Day 2019-04-19 : Good Friday 2019-04-22 : Easter Monday 2019-05-01 : Labour Day 2019-05-30 : Ascension Day 2019-06-10 : Whit Monday 2019-06-20 : Corpus Christi 2019-08-01 : Swiss National Day 2019-08-15 : Assumption of the Virgin Mary 2019-09-16 : Jeûne Fédéral 2019-11-01 : All Saints' Day 2019-12-08 : Immaculate Conception 2019-12-25 : Christmas Day
Last changes (version 1.1.1)
- if
holidates
is launched without parameter, user will be asking to give a country name by prompt message
BeCode.org challenge
- Repository : ...-CLI (name as you want with CLI)
- Deadline : 26/11/2019 5:00 pm
- Team : solo
- Submission : When the tool is published on npm, simply send us the page of your npm package.
Tools and resources
- Nager.Date documentation
- Nager.Date
- Wikipedia : Shebang
- NPM : country-list
- NPM : axios
- NPM : readlineSync
- process.argv
- HOW TO : Build a Command Line Application with Node.js