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

code-story

v0.4.1

Published

Get your code activity log for standup from git

Downloads

2

Readme

code story cli

NPM version Conventional Commits

Get your code activity log for standup from git.   ⚠️ This is beta version

Opinionated git log parser shows which code you worked on in the specified period, providing additional useful information.

Features:

  • group commit by branch
  • show link on task tracker
  • show link on PR, branch or tag
  • the ability to set working day for smart detect show log period with common usage
  • the ability to set the start time of the day, which will help you more accurately determine what you were doing
  • show changed files in commits
  • support config file

Output example:

Repository: codestory
Author: Alexander Ivankov
Story since 11:30 18.10.2020 until 11:30 23.10.2020

feature/CODESTORY-1-documentation  ───────────────────────────────────────── branch name
PR: https://github.com/MoonW1nd/codestory/pull/feature/CODESTORY-1-doc  ──── link on PR
TASK: https://tracker.yandex.ru/CODESTORY-1  ─────────────────────────────── task tracker link
COMMITS:
    A 2020-09-21 1234826 feat(readme.md): start documentation ─────── commit info
    │    A README.md  ─────────────────────────────────────────────── changed file
    │    └─────────────────────────────────────────────────────────── file modification type (*)
    └──────────────────────────────────────────────────────────────── commit modification type (*)

(*) Modification types: A - add file/commit, M - modified file/commit, D - delete file

Installation

npm i -g code-story

Options

  • --since, -s - show commits more recent than a specific date.
  • --after, -a - show commits more recent than a specific date.
  • --until, -u - show commits older than a specific date.
  • --before, -b - show commits older than a specific date.
  • --trackerUrl, -t - base url in task tracker system.
  • --author - limit the commits output to ones with author header lines that match the specified pattern.
  • --branch, -b - show only commits in the specified branch or revision range.
  • --number, -n - the number of commits to return
  • --file, -f - file filter for the git log command
  • --committer - limit the commits output to ones with author header lines that match the specified pattern.
  • --showCommitFiles - show files changed in commits.
  • --clearConsole - clear console before out info
  • --workingDaysOfWeek - sets working days of the week, use 2 first letter of day in the list and separated a comma.Use ! symbol for exclude day.

    Example: --workingDaysOfWeek="!Su,!Sa"

  • --startDayTime - sets the start time of the day. The commit history will start and end from this time.

    Format: hours:minutes Example: --startDayTime=09:00

  • --header - cli header type
  • --help, -h - show help

Config file

Support set often used options in:

  • codestory property in a package.json
  • a JSON or YAML, extensionless .codestoryrc file
  • an .codestoryrc with the extensions .json, .yaml, .yml, .js, or .cjs (example: .codestoryrc.json)
  • a codestory.config.js or codestory.config.cjs CommonJS

Example:

# .codestoryrc

author:
    'Alexander Ivankov'
trackerUrl:
    'https://tracker.yandex.ru'
workingDaysOfWeek:
    '!Fr,!Su,!Sa'
startDayTime:
    '11:30'

Usage

Get commits story by last week

code-story --since=1.week.ago

Known issues

  • wrong detect branch name in branch without commits (#4)