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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ppurge

v0.0.1

Published

A cli util that helps you clean up files and directories

Downloads

1

Readme

ppurge

Pretty Purge. A cli util that helps you clean up files and directories

ppurge-gif

Even with the huge hard drives shipped in modern computers I still find a way to fill them with mountains of dependency and build files and dist folders. For me thats a lot of node_modules, venv, *.zip, Pods, build, dist, and coverage. I work on projects and move on, never clean up. I wanted a way to easily clean it all up, ppurge is that.

WARNING: This tool deletes files and folders. It defaults to a dryrun mode that only lists the changes it will make. Be safe and be careful. Treat it with the same respect you would rm -rf /.

Install

yarn global add ppurge

or

npm install -g ppurge

Usage

# Scan current dir for purgable files
ppurge 

# Scan current dir for purgable files and purge them
# Use --purge,-p with caution. ppurge does not provide an interactive
# confirmation prompt. You should run with out -p to confirm
# the keep/purge files then run again with the -p flag.
ppurge --purge

# Scan /projects dir for purgable files
ppurge --root /projects

# Scan current directory and collect size data
ppurge --size

# Scan for all node_modules and collect size data
ppurge -sf '**/node_modules'

# Scan all files in the project dir for node_modules
# and delete them. Skip the exobase-js dir cus your working
# on that right now. Collect size info.
ppurge -psf '**/node_modules;!**/exobase-js' -r ~/projects

The .ppurge File

Pretty purge decides which files to delete and which to keep by reading a .ppurge file. Instead of using a file you can pass a --filter,-f arg with an inline semicolon seperated list of rules. Simple glob expressions per line. Each line is compared against an absolute path when evaluating. Lines that begin with a bang ! indicate a directory to keep and skip.

Example .ppurge file

# clean these things
**/node_modules
**/venv
**/*.zip
**/*.pyc
**/build
**/dist
**/Pods

# do not clean this
!**/exobase

Options

--purge, -p             defaults to a dry run. will only delete files when this flag is provided
--size, -s              compute file and directory sizes during file search. defaults to skip this so ppurge runs faster
--root, -r              path to directory to use as root of file search. uses cwd when not provided
--filter,-f             a semicolon seperated list of include/exclude rules to act as an inline .ppurge config
--help                  shows this help message