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 🙏

© 2026 – Pkg Stats / Ryan Hefner

repo-anon

v1.1.0

Published

CLI tool to anonymize/de-anonymize repositories.

Readme

repo-anon

CLI tool to anonymize and deanonymize text or files using phrase mappings from a JSON config file.

Usage

repo-anon <action> [input] [options]

Actions:

  • anonymize: replace configured phrases with placeholders
  • deanonymize: replace placeholders with original phrases

Options:

  • -f, --file <path>: explicitly process a single file
  • -d, --dir <path>: process all files in a directory
  • -p, --pattern <glob>: only process files matching the glob
  • -o, --out-dir <path>: write output files to another directory
  • -r, --recursive: recurse into subdirectories
  • -c, --config <path>: config file path, default .phrases.json
  • --overwrite: overwrite input files instead of writing to stdout

Examples:

repo-anon anonymize "Meeting with Acme Corp"
repo-anon anonymize --file ./notes.txt
repo-anon anonymize --dir ./src --pattern "**/*.js" --out-dir ./anon-src --recursive
repo-anon deanonymize --file ./anon.txt --overwrite

Config File

The config file is JSON and supports both phrase mappings and ignore patterns.

{
  "mappings": {
    "Acme Corp": "COMPANY_A",
    "John Doe": "USER_1"
  },
  "ignore": ["./.*"]
}

Fields:

  • mappings: object mapping original phrases to anonymized placeholders
  • ignore: optional array of glob patterns to skip during directory processing

Ignore Patterns

Ignore patterns are read from the config file and applied when processing directories.

Example:

{
  "ignore": ["./.*"]
}

./.* ignores files and directories whose names start with a dot, such as:

  • .env
  • .git
  • .github
  • .idea

Behavior:

  • ignored directories are skipped before recursion
  • ignored files are not processed
  • ignore patterns apply to directory traversal, not explicitly targeted single files passed with --file
  • patterns are matched against both relative paths and basenames, with and without a leading ./

Notes

  • If the config file is missing or empty, processing still runs with no mappings and no ignore rules.
  • --pattern is an include filter. ignore is an exclude filter from the config file. Both can be used together.