Tiny time tracker
npm install time-tracker-cli
![NPM][npm-home-module]


[![Support link][paypal-badge]][paypal-link]
```
npm install -g time-tracker-cli`
or`
yarn global add time-tracker-clitimer
Now you can start to call command

`
└┘#! timer
Usage: timer [options] [command]
Commands:
start|s
pause|p
unpause|up
finish|f
description|d
add
subtract|sub
report|r [task_string] [rate] Report time of the tasks, empty for select all tasks. Can pass a rate (1h).
log|l
export|e Export the tasks in a JSON
delete|del [task_string] Remove tasks from the list. Empty for select all tasks
configure
configuration Output configuration
Tiny time tracker for projects
Options:
-h, --help output usage information
-V, --version output the version number
--updateDB Update the db if its neccesary
`
- To start a task run:
``
$ timer start `
- To finish a task run:`
$ timer finish `
- You can add a description adding:`
$ timer description `
- You can also see the timer running:`
$ timer log
`javascript`
{
"tasks": {
"work1.website.design": {
"description": "If you added one",
"timings": [{
"start": "2016-02-19T10:00:36.393Z",
"stop": "2016-02-19T18:01:50.921Z"
}],
"log": [
"start#2016-02-19T10:00:36.393Z",
"stop#2016-02-19T18:01:50.921Z"
]
},
"work1.website.deployServer": {
"timings": [{
"start": "2016-02-19T10:01:59.116Z",
"stop": "2016-02-19T10:32:10.687Z"
}],
"log": [
"start#2016-02-19T10:01:59.116Z",
"stop#2016-02-19T10:32:10.687Z"
]
},
"work2.api.develop.userController": {
"timings": [{
"start": "2016-02-19T10:04:23.060Z",
"stop": "2016-02-19T20:04:36.836Z"
}],
"log": [
"start#2016-02-19T10:04:23.060Z",
"stop#2016-02-19T20:04:36.836Z"
]
},
"work2.api.develop.loginController": {
"timings": [{
"start": "2016-02-19T10:09:41.848Z",
"stop": "2016-02-19T13:11:54.059Z"
}],
"log": [
"start#2016-02-19T10:09:41.848Z",
"stop#2016-02-19T13:11:54.059Z"
]
}
},
"config": {
"format.output": "DD/MM",
"config.version": 2
}
}
If you have the version 1.x and you want to conserve the DB, run timer --updateDB to update the DB to version 2.xDevelopment
Run
`npm install;npm run dev` to watch the proyect, and compile the code automatically.
Run `npm build`` to build the module.
[paypal-badge]: https://img.shields.io/badge/❤%20support-paypal-blue.svg?style=flat-square
[paypal-link]: https://www.paypal.me/danibram
[npm-home-module]: https://www.npmjs.com/package/time-tracker-cli