https://github.com/pkgforge-security/quotes-escaper
Escapes Quotes (Single|Double) [Maintainer=@Azathothas]
https://github.com/pkgforge-security/quotes-escaper
Last synced: 12 months ago
JSON representation
Escapes Quotes (Single|Double) [Maintainer=@Azathothas]
- Host: GitHub
- URL: https://github.com/pkgforge-security/quotes-escaper
- Owner: pkgforge-security
- License: mit
- Created: 2025-03-06T03:06:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-06T03:12:00.000Z (about 1 year ago)
- Last Synced: 2025-03-24T23:51:40.986Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### ℹ️ About
Escapes Quotes (Single | Double). You can also use [sttr](https://github.com/abhimanyu003/sttr) to do the same more reliably. Or alternatively: https://tools.knowledgewalls.com/online-escape-single-or-double-quotes-from-string
### 🖳 Installation
Use [soar](https://github.com/pkgforge/soar) & Run:
```bash
soar add 'quotes-escaper#github.com.pkgforge-security.quotes-escaper'
```
### 🧰 Usage
```mathematica
❯ quotes-escaper --help
Escapes Quotes (Single | Double)
Options:
-s | --single Escape single quotes
-d | --double Escape double quotes
-f | --file File path to read input from
# Input can be also passed from stdin or as positional argument
❯ quotes-escaper -s "single's" (OR) echo "single's" | quotes-escaper -s (OR) cat "file.txt" | quotes-escaper -s
~> single\'s
❯ quotes-escaper -d 'double "" quotes' (OR) echo 'double "" quotes' | quotes-escaper -d (OR) cat "file.txt" | quotes-escaper -d
~> double \"\" quotes
```