@ikhlasbano/countdown-timer

1.0.0 • Public • Published

Countdown Timer

The Countdown Timer is a command-line utility built using Node.js and Inquirer.js. It allows users to set a countdown timer for a specified duration and unit of time, displaying the remaining time in hours, minutes, and seconds.

Features

  • Customizable Duration: Set the duration of the countdown timer according to your needs.
  • Flexible Units: Choose from seconds, minutes, or hours as the unit of time for the countdown.
  • Interactive Interface: Simple and intuitive command-line interface powered by Inquirer.js.
  • Repeat Timer: Option to run the countdown timer again after completion.

Installation

  1. Ensure you have Node.js installed on your system.
  2. Clone this repository to your local machine.
  3. Navigate to the project directory in your terminal.
  4. Run npm install to install the required dependencies.
  5. Start the countdown timer by running npm start.

Usage

  1. Enter the desired duration for the countdown timer when prompted.
  2. Select the unit of time (seconds, minutes, or hours) for the countdown.
  3. The timer will start counting down, displaying the remaining time in the console.
  4. Once the timer completes, you have the option to run it again or exit the program.

Technologies Used

  • Node.js: Asynchronous event-driven JavaScript runtime for building the core platform.
  • Inquirer.js: Command-line interface library for interactive prompts, facilitating user input.
  • Chalk: Terminal string styling library for enhancing the visual presentation of the countdown timer.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to enhance the Countdown Timer.

License

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ikhlasbano/countdown-timer

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

19.7 kB

Total Files

5

Last publish

Collaborators

  • ikhlasbano