ricci-cli

1.0.1 • Public • Published

My first package 😃

To discover node, I coded a small command-line tool who will show you the holidays of the current year for the country that you had put (not case sensitive).

How to use

Install it by running in your terminal:

npm i ricci-cli

To use it simply run:

holidates your-country

Example

If I run :

holidates belgium

It will display:

[
  {
    date: "2021-01-01",
    localName: "Nieuwjaar",
    name: "New Year's Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: 1967,
    type: "Public",
  },
  {
    date: "2021-04-04",
    localName: "Pasen",
    name: "Easter Sunday",
    countryCode: "BE",
    fixed: false,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-04-05",
    localName: " Paasmaandag",
    name: "Easter Monday",
    countryCode: "BE",
    fixed: false,
    global: true,
    counties: null,
    launchYear: 1642,
    type: "Public",
  },
  {
    date: "2021-05-01",
    localName: "Dag van de arbeid",
    name: "Labour Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-05-13",
    localName: "Onze Lieve Heer hemel",
    name: "Ascension Day",
    countryCode: "BE",
    fixed: false,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-05-24",
    localName: "Pinkstermaandag",
    name: "Whit Monday",
    countryCode: "BE",
    fixed: false,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-07-21",
    localName: "Nationale feestdag",
    name: "Belgian National Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-08-15",
    localName: "Onze Lieve Vrouw hemelvaart",
    name: "Assumption Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-11-01",
    localName: "Allerheiligen",
    name: "All Saints' Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-11-11",
    localName: "Wapenstilstand",
    name: "Armistice Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
  {
    date: "2021-12-25",
    localName: "Kerstdag",
    name: "Christmas Day",
    countryCode: "BE",
    fixed: true,
    global: true,
    counties: null,
    launchYear: null,
    type: "Public",
  },
];

THAT'S ALL !

Readme

Keywords

Package Sidebar

Install

npm i ricci-cli

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

3.75 kB

Total Files

3

Last publish

Collaborators

  • ricci_pierre