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

bad-word-cli

v1.2.0

Published

A CLI to clean and detect profane words using the 'bad-words' package

Readme

🧼 bad-word-cli

A colorful and user-friendly CLI tool to detect and clean profane words using the bad-words package.


📦 Installation

Globally via npm:

npm install -g bad-word-cli

bad-word-cli isProfane [--example]

Check if "hell" is profane

bad-word-cli isProfane "hell"

🚫 Profane

Check a clean word

bad-word-cli isProf "hello"

✅ Clean

Show usage example

bad-word-cli isProf "example" --example
bad-word-cli clean <string> [options]

Clean a default profane word

bad-word-cli clean "assh0le"

🧼 Cleaned: ***

Add a custom word and clean

bad-word-cli clean "this is a badword" -a badword

🧼 Cleaned: this is a ***

Remove a default profane word from the filter

bad-word-cli clean "damn nice" -r damn

###🧼 Cleaned: damn nice

Show usage example

bad-word-cli clean "example" --example

Clean and overwrite original file

bad-word-cli file ./input.txt -r

🔁 File rewritten: /full/path/input.txt

Clean and save to a new file

bad-word-cli file ./input.txt -n cleaned.txt

📄 Cleaned file saved as: /full/path/cleaned.txt

Print cleaned content to console (no options)

bad-word-cli file ./input.txt

Show usage example

bad-word-cli file ./input.txt --example

🧪 Bonus: Show Examples with --example

All commands support --example to show a real use case:

bad-word-cli clean "text here" --example
bad-word-cli file ./sample.txt --example
bad-word-cli isProf "word" --example