canadian-holidays

0.1.4 • Public • Published

Canadian Holidays CLI

A simple Node.js command-line interface (CLI) tool to check the list of Canadian holidays for a given year.

Features

  • Retrieve and display a list of statutory holidays in Canada for a specified year.
  • Specify the Canadian province to get holidays specific to that province.
  • Display holidays in calendar format.

Installation

Ensure you have Node.js installed on your machine. Install the tool globally using npm.

npm install -g canadian-holidays

Usage

Run the CLI with the following command:

canadian-holidays [options]

Options:

  • -c, --calendar: Display holidays in calendar format.
  • -p, --province <province>: Specify the Canadian province to get holidays for that province.
  • -y, --year <year>: Specify the year for which you want to check holidays.

Example:

canadian-holidays -y 2023 -p ON

This will display a list of statutory holidays in Ontario for the year 2023.

API Source

The tool fetches holiday data from the Canada Holidays API.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i canadian-holidays

    Weekly Downloads

    3

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    7.62 kB

    Total Files

    4

    Last publish

    Collaborators

    • dnshi