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

perscrutari

v0.1.0

Published

A powerful CLI tool to find and analyze files by size, type, and lines of code

Readme

🔍 Perscrutari

A powerful CLI tool to find and analyze files by size, type, and lines of code.

Perscrutari (Latin for "to search" or "to investigate") is a command-line utility designed to help you discover large files, analyze code metrics, and manage your file system efficiently.

✨ Features

  • Find files by size (minimum/maximum)
  • Filter files by type (images, documents, code files, etc.)
  • Count lines of code (excluding comments and blank lines)
  • Detect duplicate files based on content
  • Interactive mode for file management
  • Export results to various formats

📦 Installation

Global Installation

npm install -g perscrutari

Local Installation

npm install perscrutari

🚀 Usage

Basic Usage

# Show help
pers --help

# Find files larger than 10MB in current directory
pers --min-size 10MB

# Find large image files
pers --types img --min-size 5MB --count 20

# Find files with more than 1000 lines of code
pers --min-loc 1000 --types code

# Interactive mode to manage large files
pers --min-size 100MB --interactive

# Find duplicate files
pers --duplicates

⚙️ Command Options

| Option | Description | Example | |--------|-------------|---------| | -w, --workdir <path> | Directory to search | --workdir /home/user/projects | | --min-size <size> | Minimum file size | --min-size 10MB | | --max-size <size> | Maximum file size | --max-size 1GB | | -c, --count <number> | Limit results to top N files | --count 50 | | -t, --types <types> | Filter by file types | --types img,doc,code | | --min-loc <number> | Minimum lines of code | --min-loc 500 | | --max-loc <number> | Maximum lines of code | --max-loc 5000 | | -d, --duplicates | Show duplicate files | --duplicates | | -i, --interactive | Enter interactive mode | --interactive | | -s, --sort <field> | Sort by: size, loc, name | --sort loc | | -o, --output <file> | Export results to file | --output results.json |

📂 File Type Categories

  • img: .jpg, .jpeg, .png, .gif, .svg, .webp, .bmp, .ico
  • doc: .pdf, .doc, .docx, .txt, .md, .odt, .rtf
  • code: .js, .ts, .py, .java, .cpp, .c, .go, .rs, .php
  • video: .mp4, .avi, .mov, .mkv, .flv, .wmv
  • audio: .mp3, .wav, .flac, .aac, .ogg, .m4a

💡 Examples

Find all images larger than 5MB

pers --types img --min-size 5MB

Find duplicate files in a specific directory

pers --workdir ~/Downloads --duplicates

Find large code files with many lines

pers --types code --min-loc 1000 --min-size 100KB --count 20

Interactive mode to clean up large files

pers --min-size 500MB --interactive

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT License - see LICENSE file for details

👨‍💻 Author

Built with Node.js and Commander.js


✨ Created with AI