@ikhlasbano/countdown-timer
v1.0.0
Published
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.
Downloads
3
Readme
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
- Ensure you have Node.js installed on your system.
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
npm install
to install the required dependencies. - Start the countdown timer by running
npm start
.
Usage
- Enter the desired duration for the countdown timer when prompted.
- Select the unit of time (seconds, minutes, or hours) for the countdown.
- The timer will start counting down, displaying the remaining time in the console.
- 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.