JSPM

bad-word-cli

1.2.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q30404F
    • License MIT

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

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bad-word-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this 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

      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