Skip to content

sethvincent/timerbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timerbot

A JavaScript API for tracking time.

Because most time tracking software doesn't have the things that I want (JSON API, use as JS library, & open source).

Because there are a few project ideas I'm working on where tracking time may be part of the app, so a library would be useful.

Because this is how I spent a Friday evening.

Next: create a timerbot-server package with a JSON API.

Install

npm install --save timerbot

Usage

Requires using with a levelup instance like so:

var level = require('level');
var db = level('/tmp/timerweeee');
var timer = require('timerbot')(db);

timer.start(options, callback)

var start = { 
  title: 'doing some work', 
  project: 'timerbot',
  person: 'robodog'
};

timer.start(start, function (err, block) {
  console.log(err, block)
});

timer.stop(person, callback)

timer.stop('robodog', function (err, block) {
  console.log(err, block);
});

timer.active(person, callback)

timer.active('robodog', function (err, status) {
  console.log(err, status);
});

timer.list(person, callback)

timer.list('robodog', function (err, data) {
  console.log(err, data);
});

Contributing

See the CONTRIBUTING.md file.

License

MIT

About

track your time woooo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published