Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanburnette/go-html-remove-empty-lines
https://github.com/ryanburnette/go-html-remove-empty-lines
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ryanburnette/go-html-remove-empty-lines
- Owner: ryanburnette
- License: apache-2.0
- Created: 2023-05-20T14:17:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-19T03:46:34.000Z (3 months ago)
- Last Synced: 2024-11-19T04:27:22.344Z (3 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [html-remove-empty-lines](https://github.com/ryanburnette/go-html-remove-empty-lines)
`html-remove-empty-lines` is a Go-based CLI tool for removing empty lines from HTML files.
## Usage
```bash
html-remove-empty-lines -file -dir [-exts ] [-d]
```### Options
- `-file `: Specify the path to a single HTML file to process. Required if `-dir` is not used.
- `-dir `: Specify the path to a directory to process all HTML files recursively. Required if `-file` is not used.
- `-exts `: Specify a comma-separated list of file extensions to process (e.g., `.html,.htm`). Defaults to `.html`. Only applicable when using `-dir`.
- `-d`: Enable dry run mode. Displays changes without modifying the files.### Notes
- The `-file` and `-dir` options are mutually exclusive; you must use one or the other.
` blocks.
- The utility removes empty lines from HTML files while preserving content within `