Small CLI for escaping characters in strings.
cargo install esc
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.
This is just a tiny wrapper over snailquote which does all the actual work here.