cleanify
CLI utility to remove remove newlines, tabs from a file and copy it to your clipboard
- Pure 🐍 with only klembord used in the Tech Stack as a clipboard API
Installation
-
From PyPI (requires Python and PIP)
pip install cleanify
-
From source (requires Python)
- Clone this repository
- Start a terminal in the repository's folder
- Run
python setup.py install
Use
- In your terminal, type
cleanify --file {your filepath - relative OR absolute}
- The cleanified string will be copied to your clipboard
Supported Flags:
Flag | Required | Description |
---|
-file , -f | true | The path {relative or absolute} to the target file |
--repQuotes , --rq | false | Whether you want to replace double quotes with single ones (useful for HTML stored as JSON). Defaults to false |