An open API service indexing awesome lists of open source software.

https://github.com/tuc0w/pomodorojs


https://github.com/tuc0w/pomodorojs

cli javascript nodejs pomodoro pomodoro-cli pomodoro-technique pomodoro-timer pomodoro-tracker terminal vscode

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# pomodorojs
![GitHub](https://img.shields.io/github/license/tuc0w/pomodorojs)

## About
A customizable pomodoro timer for your terminal

---

## Usage
Install the dependencies
```bash
yarn install
# or
npm install
```
Start the timer
```bash
yarn start
# or
npm run start
```

Output during work:

![Output during work][work]

Output during pause:

![Output during pause][pause]

To pause hit the p key, to resume work hit the p key again.

To quit and write the logs hit the q key.

The logs will be saved as a json file within the `logs/` directory, the filename will be the current ISO time, a sample log looks like this:
```json
{
"task": "Test",
"targetHours": "3",
"blockLength": "24",
"breakLength": "6",
"timeEntries": [
[
{
"isBreak": false,
"seconds": 6,
"start": "2021-02-25T00:04:24.034Z",
"end": "2021-02-25T00:04:30.360Z"
},
{
"isBreak": true,
"seconds": 6,
"start": "2021-02-25T00:04:30.360Z",
"end": "2021-02-25T00:04:37.031Z"
}
]
]
}
```
---
## Credits
Inspired by the article https://js.plainenglish.io/build-a-command-line-pomodoro-timer-in-node-js-65ed2f6d3308

[work]: /docs/images/work.png "output during work"
[pause]: /docs/images/pause.png "output during pause"