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

@studiometa/cli-timer

v1.0.0-beta.4

Published

A time tracking CLI connected to Tempo

Downloads

21

Readme

CLI Timer

A simple CLI tool to track your time when working on Jira issues, synchronized with Tempo.

Installation

Install it globally with NPM:

$ npm install -g @studiometa/cli-timer

The package is currently private, you will need an NPM token to be able to install it. Ask Titouan to generate one for you and add it to your .zshrc file: export NPM_TOKEN='...'.

Then configure the CLI with the config command:

# With the prompt
$ timer config

# Without the prompt
$ timer config \
  --username '<JIRA_USERNAME>' \
  --token '<JIRA_TOKEN>' \
  --org '<JIRA_ORG>' \
  --account-id '<JIRA_ACCOUNT_ID>' \
  --tempo-token '<TEMPO_TOKEN>' \
  --no-prompt

To configure the CLI, you will need the following informations:

  • You Jira username, usually your email address
  • Your Jira organization name, ORG_NAME in https://ORG_NAME.atlassian.net
  • A Jira API token, create one at https://id.atlassian.com/manage-profile/security/api-tokens
  • Your Jira account ID, find it when accessing your profile in Jira: https://ORG_NAME.atlassian.net/jira/people/ACCOUNT_ID
  • A Tempo API token, create one at https://ORG_NAME.atlassian.net/plugins/servlet/ac/io.tempo.jira/tempo-app#!/configuration/api-integration

Usage

# Start a timer
$ timer start DESK-1234 --message 'Working on something'
# or
$ timer start DESK-1234 -m 'Working on something'

# Check on a timer status
$ timer check
[DESK-1234] Working on something (2 minutes)

# Stop a timer and synchronize it in Tempo
$ timer stop --sync
# or
$ timer stop -s

# Display worklogs for yesterday
$ timer log yesterday

# Display worklogs for a given week
$ timer log Sep7-11

# Display help
$ timer --help

Display the current timer in your macOS menu bar

You can install Bitbar and create a custom plugin to trigger the timer check command and display your current timer in your menu bar.