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

wtf-did-i-do

v1.1.4

Published

WTF Did I Do is a tool for scatterbrained developers who need to know what they have been working on, but don't. WTF Did I Do will traverse a user's git repositories and compile an ordered list of commits the developer has done over a specific timeframe

Downloads

5

Readme

WTF Did I Do?

WTF Did I Do is a tool for scatterbrained developers who need to know what they have been working on, but don't.
WTF Did I Do will traverse a user's git repositories and compile an ordered list of commits the developer has done over a specific timeframe so they can keep better track of their commits.

Why?

True, you could run git log yourself, but this will do it across several projects for you, compiling a date-project ordered list in different formats for your own use in either csv, json or human readable formats.

Usage

You need npm and node for this to work.
After these are installed all you have to do is run npx wtf-did-i-do and the script will recursively all sub-folders of the folder you executed the script on, and compile the necessary commits.
The only mandatory options you should provide are --from <year-month-date> and --author <email>.

Output will be sent to standard output, which can be sent to a file as npx wtf-did-i-do --from 2022-01-01 --author [email protected] --format json > output.json

Options

The options supported by WTF Did I Do are:

| Option | Description | Accepted Values | | -------| ----------- | --------------- | | from | When to start looking for commits. Formatted in ISO 8061 or year-month-date format | 2022-01-01 \| 2022-01-01T00:00:00.0000Z | | until | When to stop looking for commits. Formatted in ISO 8061 or year-month-date format | 2022-01-10 \| 2022-01-10T00:00:00.0000Z | | author | Email of the user for whom we are looking for commits | | | format | Format to use for the report | csv \| json \| human |

Sample outputs

CSV

date,author,repository,message,body
2022-03-27T12:22:48-04:00,[email protected],/home/uri/WTF-did-I-do,Sample message 2,"Sample body 2
"
2022-03-27T12:22:36-04:00,[email protected],/home/uri/WTF-did-I-do,Sample message 1,"Sample Body 1
"
2022-03-27T12:20:29-04:00,[email protected],/home/uri/WTF-did-I-do,improved documentation,

JSON

[
  {
    "date": "2022-03-27T12:22:48-04:00",
    "author": "[email protected]",
    "repository": "/home/uri/WTF-did-I-do",
    "message": "Sample message 2",
    "body": "Sample body 2\n"
  },
  {
    "date": "2022-03-27T12:22:36-04:00",
    "author": "[email protected]",
    "repository": "/home/uri/WTF-did-I-do",
    "message": "Sample message 1",
    "body": "Sample Body 1\n"
  },
  {
    "date": "2022-03-27T12:20:29-04:00",
    "author": "[email protected]",
    "repository": "/home/uri/WTF-did-I-do",
    "message": "improved documentation",
    "body": ""
  }
]

Human

Date: 2022-03-27, 12:22:48 p.m.
Author: [email protected]
Repository: /home/uri/WTF-did-I-do
Message: Sample message 2

Body: 
Sample body 2


========================================================================

Date: 2022-03-27, 12:22:36 p.m.
Author: [email protected]
Repository: /home/uri/WTF-did-I-do
Message: Sample message 1

Body: 
Sample Body 1


========================================================================

Date: 2022-03-27, 12:20:29 p.m.
Author: [email protected]
Repository: /home/uri/WTF-did-I-do
Message: improved documentation