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

dummie-tools

v1.6.0

Published

This is a set of my idea tools

Readme

Dummie Tools

A collection of useful command-line utilities built with TypeScript.

Installation

npm install -g dummie-tools

Or you can use it directly with npx:

npx dummie-tools [command] [options]

Commands

strucview

Display a directory tree structure with customizable depth.

dummie strucview [options]

Options:

  • -l, --level <n>: Maximum depth level to display (default: "3")
  • -d, --dir <path>: Directory to scan (default: ".")
  • -s, --skip <name>: Directory name to skip (can be used multiple times)
  • -n, --no-interactive: Disable interactive prompts for directories

Use la as the level to display all levels:

dummie strucview --level la

Example with skip option:

# Skip both 'node_modules' and 'dist' directories
dummie strucview --skip node_modules --skip dist

# Shorthand version
dummie strucview -s node_modules -s dist

By default, you'll be prompted interactively for each common directory (node_modules, .git, etc.) and any directories you choose to skip will be completely excluded from the output:

Skip directory "node_modules"? (y/n): y
Skip directory ".git"? (y/n): y

If you want to disable the interactive prompts:

# Disable interactive prompts
dummie strucview --no-interactive

# Shorthand version
dummie strucview -n

Example output:

face-recognition-server
├── __pycache__
│   ├── api.cpython-312.pyc
│   ├── db.cpython-312.pyc
│   ├── main.cpython-312.pyc
    └── ws.cpython-312.pyc
├── .git
│   └── [...]
├── static
│   ├── index.html
│   ├── script.js
    └── style.css
├── test-app
│   ├── .github
│   │   └── [...]
│   ├── node_modules
│   │   └── [...]
│   ├── public
│   │   └── [...]
    └── src
├── tests
│   ├── __pycache__
│   ├── images
    └── test_main.py
├── venv
│   ├── Include
│   ├── Lib
│   ├── Scripts
    └── pyvenv.cfg
├── .env
├── .gitignore
├── api.py
├── db.py
├── main.py
├── README.md
├── requirements.txt
└── ws.py

The tool automatically collapses large directories and shows a directory-first structure, making it easy to understand project layouts.

translate

Translate text between languages using Google Translate API with a Puppeteer fallback mechanism.

dummie translate <text> [options]

Options:

  • -f, --from <lang>: Source language code (default: "en")
  • -t, --to <lang>: Target language code (default: "vi")

Examples:

# From French to English
dummie translate "Bonjour le monde" --from fr --to en
# Output: Hello world

# From English to French
dummie translate "Hello, how are you today?" --from en --to fr
# Output: Bonjour, comment vas-tu aujourd'hui?

# From Vietnamese to English
dummie translate "Vô lý" --from vi --to en
# Output: Unreasonable

The translation feature uses a reliable HTTP API first and falls back to a browser-based method if the API fails, ensuring robust translations even during API limitations.

info

Display information about your system and environment.

dummie info

This command shows:

  • Current dummie-tools version
  • Node.js version
  • Operating system details
  • NPM version
  • Installation location

version-check

Check if you're running the latest version of dummie-tools.

dummie version-check

browser-detect

Detect browser installations for the translation feature.

dummie browser-detect

This command helps you configure the Chrome browser path for the translation feature's fallback mechanism. It will scan common installation locations and provide instructions for setting the CHROME_PATH environment variable.

Example output:

Detecting browsers for translation feature...
✅ Found Chrome at: C:/Program Files/Google/Chrome/Application/chrome.exe

To use this browser for translations, set the CHROME_PATH environment variable:

setx CHROME_PATH "C:/Program Files/Google/Chrome/Application/chrome.exe"

Global Options

These options are available with all commands:

  • -d, --debug: Enable debug mode
  • -q, --quiet: Suppress output
  • -V, --version: Output the version number
  • -h, --help: Display help information

Features

  • Directory-first sorting in tree views
  • Automatic collapsing of large directories like node_modules
  • Customizable depth for directory traversal
  • Text translation with fallback mechanism
  • System diagnostics and version checking

Issues

Feel free to open issues for this pkg.

License

MIT © Doan Nam Son