npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

trackthetime

v1.3.1

Published

track working time

Downloads

24

Readme

trackthetime

A time tracker

NPM version Build Status

Yet another time tracker which runs from commandline.

Super simple to use. Easy reporting.

Installation

npm i -g trackthetime

Usage

To track you time per project use the following format

ttt <project> <description>

e.g.

ttt coding yet some other lines of code

This adds a line to the ttt.log file in ~/.config/ttt/. Specify your <project> without using spaces. <description> may take as much spaces as you like.

If you like to add a line in the past, use (assume it's 17:00h):

ttt 11:00 meeting with smart people

If you got interrupted at 10:30 by a phone call of 30 min

ttt 10:30 +30 phone Mr. Burns calling

To track your breaks:

ttt p

Continue with previous task:

ttt c

To track your working end

ttt e

Then check what you have done today with:

ttt

If you have been on vacation at 24th of December

ttt 12-24 vacation

or sick the day after new year...

ttt 01-02 sick

If you like to change your entries, edit the file:

ttt -e

If your entries have gone out of order, sort it:

ttt -s

To quickly check your last entries:

ttt -l

Configuration

Configuration can be changed with:

ttt --config

{
  "daily": 8,     // daily working hours
  "weekly": 40,   // weekly working hours
  "editor": "vi", // (optional) your commandline editor of choice
                  // if unset then EDITOR env var is used
}

Reporting

Reporting can be done per day, week, month. Switches are -d, -w, -m.
If you like to get reports from a certain project use the -p switch.

To report all projects of the current week, type:

ttt -w -p

To report all meetings of the current month, type (you need to have typed ttt meeting previously):

ttt -m -p meeting

To report all meetings of the current month including breaks:

ttt -m -p meeting,pause

To restrict reporting to a certain timeframe, e.g. only last week use

ttt -w -t 1week

To report restrict your projects to everything except 'meetings':

ttt -m -p *,-meeting,pause

Options

  Usage: ttt [options]

  Options:

    -h, --help           output usage information
    -s, --sort           sort the time track log
    -e, --edit           edit the time track log
    -d, --day            report dayly stats
    -w, --week           report weekly stats
    -m, --month          report monthly stats
    -p, --project [prj]  report projects only
    -f, --from <val>     report from "val"
    -t, --to <val>       report until "val"
    -l, --last [n]       show last n lines
        --config         open config in editor

Contribution and License Agreement

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work or correctly attributed with the source of its origin and licence.

License

Copyright (c) 2016 commenthol (MIT License)

See LICENSE for more info.

References