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

fchurn

v1.2.1

Published

File churn metric generator for projects using Git

Downloads

11

Readme

FChurn

File churn is a great way to see that a part of your application might be modified too often. This can indicate issues like a "god module/class" or logical pieces are too tightly coupled, making the software harder to change over time.

FChurn (File Churn) helps get a quick read on which files are seeing the most development and which are being created and then left alone.

Setup

Be sure you have a current version of Node.js installed.

To install:

npm install -g fchurn

Usage

Open a terminal window (terminal, powershell, cmd.exe, etc.) in a folder containing a git repository.

Run: fchurn.

For a full list of options, run fchurn --help.

Help Output

fchurn [--help][--flag value]

Flag options:

  • fileName

    • Value: file name string
    • Description: Get the churn for all files matching file name string
  • help

    • Value: none
    • Description: display help info
  • json

    • Value: none
    • Description: Display churn metrics in JSON format
  • showTop

    • Value: Number of churn records to show
    • Description: Show the top X churned files
  • snapshotDayCount

    • Value: Number of days to include in the churn snapshot
    • Description: Build a churn snapshot of the past X days

Examples:

Show the 10 files with the highest churn over the last 30 days

fchurn --showTop 10 --snapshotDayCount 30

Show the churn of the package file over the past year

fchurn --fileName "package.json" --snapshotDayCount 365