1.0.8 • Published 6 years ago

@3dprogramin/tasktracker v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Task tracker

A simple task time tracker build in nodejs

Installation

npm install @3dprogramin/tasktracker

or

git clone https://github.com/3dprogramin/tasktracker

Usage

const tasktracker = require('@3dprogramin/tasktracker');

Restart time

tasktracker.restart().then(function(data){
       send_os_notif('Time restarted');
    }).catch(function(err){
       send_os_notif(format('Error: {}', err.message));
    });

Get passed time

tasktracker.passed_time().then(function(passed_time){
        send_os_notif(format('Started to track {}', passed_time));
    }).catch(function(err){
        send_os_notif(format('Error: {}', err.message));
    });

The send_os_notif method executes a OS command, that prints an alert on the screen. Method can be found inside example

Example

The example contains an out-of-the-box working program (if you're on ArchLinux with OpenBox) If you're not, make sure you have notify-send installed

Once you have that working, you can set a hotkey to make it even easier, I've used obkey to do that

Currently, it accepts two arguments: restart and bashow


Usage

Restart time tracker

node example/index.js restart

Show passed time

node example/index.js show

License

MIT

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago