This project is a simple HTML cleaner built with Deno.
- Cleans and formats HTML files.
- Removes unnecessary tags and attributes.
- Minifies HTML for optimized performance.
To install the dependencies, run:
deno install --allow-read --allow-write https://deno.land/x/html_cleaner/cli.tsTo clean an HTML file, use the following command:
deno run --allow-read --allow-write main.ts <input-file> <output-file>Example:
deno run --allow-read --allow-write main.ts input.html output.htmlTo create CLI file i.e. htmlParser
deno task buildRun cli -
Go to dist
./htmlCleaner ./blogs Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.