🐌
esc
Small CLI for escaping characters in strings.
Install
cargo install esc
Usage
cat LICENSE-MIT | esc escape | pbcopy
pbpaste | esc unescape | pbcopy
Note This reads the entire input in memory at once in order to locate paired characters.
Acknowledgments
This is just a tiny wrapper over snailquote which does all the actual work here.