rmshii
v1.0.1
Published
Remove comments and emojis from your code.
Readme
rmshii
A lightning-fast CLI tool to strip out unwanted comments and emojis from AI-generated code.
Because nobody has the time to manually delete // Here is your updated function! 🚀✨ 50 times a day.
Installation
You don't even need to install it to use it! The easiest way is to run it on-the-fly using npx:
npx rmshii [options] [target]Or, if you find yourself using it constantly, install it globally:
npm install -g rmshii(If installed globally, you can just type rmshii instead of npx rmshii)
Usage
By default, rmshii targets the current directory if no path is provided. It recursively scans folders and safely ignores node_modules and hidden directories (like .git).
Options
-c, --comments: Remove code comments (single and multi-line)-e, --emoji: Remove all emojis-a, --all: Remove both comments and emojis-V, --version: Output the current version-h, --help: Display help for command
Examples
Clean all comments in the current directory:
npx rmshii -cClean only emojis in a specific folder (src/):
npx rmshii -e src/Nuke both comments and emojis in a single file:
npx rmshii -a app.jsSupported File Types
rmshii currently supports cleaning the following file extensions:
- .js, .jsx
- .ts, .tsx
- .py
- .html
- .css
License
ISC
