Giter Site home page Giter Site logo

ad-h0c / hourglass-timer-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 11 KB

Hourglass is a simple and lightweight command-line interface (CLI) timer application. This tool lets you set a timer and receive notifications when the time is up. It is useful for productivity or any scenarios where a quick timer is needed

JavaScript 100.00%
cli hourglass nodejs productivity timer

hourglass-timer-cli's Introduction

Hourglass Timer CLI

hourglass is a simple and lightweight command-line interface (CLI) timer application. This tool lets you set a timer and receive notifications when the time is up. It is useful for productivity or any scenarios where a quick timer is needed.

Table of Contents

Features

  • Set a timer with hours, minutes, seconds, and days.
  • Timer data is saved locally so you can close the terminal and still keep the timer running.
  • Customizable notifications when the timer ends.
  • Easy to use command-line interface.

Installation

Cloning the Repository

  1. First, clone the repository to your local machine using git:
git clone https://github.com/YOUR_GITHUB_USERNAME/hourglass-timer-cli.git
  1. Navigate into the project directory:
cd hourglass-timer-cli

Installing Dependencies

  1. Make sure you have Node.js installed on your machine.
  2. Install the dependencies by running:
npm install

This command installs all the necessary dependencies from the package.json file.

Making Hourglass Globally Available

Windows

For Windows, you can make the hourglass command globally available by adding it to your system’s PATH variable. You can do this by navigating to your npm installation folder and adding it to the PATH.

  1. Find where your global npm packages are stored by running:
npm bin -g
  1. Add the directory to your system's PATH environment variable.

MacOS and Linux

For MacOS and Linux, linking the package globally will make the command available system-wide.

npm link

This installs hourglass globally and you can now access it from anywhere in the command line.

Usage

The basic syntax of hourglass is as follows:

./hourglass.js [options]
  • --hours [number] : Set the number of hours for the timer.
  • --minutes [number] : Set the number of minutes for the timer.
  • --days [number] : Set the number of days for the timer.
  • --seconds [number] : Set the number of seconds for the timer.
  • --taskName [string] : Name of the task for the timer.
  • --load : Load the previous timer data.
  • --analyze : Analyze the previous timer data.
  • --timer [1 or 2] : Use a predefined timer.

Examples

  • Set a timer for 5 minutes:
./hourglass.js --minutes 5
  • Set a timer for 2 hours, 30 minutes, and 15 seconds:
./hourglass.js --hours 2 --minutes 30 --seconds 15
  • Set a timer with the task name.
./hourglass.js --taskname test --hours 1

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue on GitHub.

License

hourglass is licensed under the MIT License. See LICENSE file for more details.

hourglass-timer-cli's People

Contributors

ad-h0c avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.