3 releases

0.2.2 Sep 22, 2021
0.2.1 Sep 22, 2021
0.2.0 Sep 22, 2021

#1727 in Text processing

Unlicense/MIT and GPL-3.0-only

31KB

🐌 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.

Dependencies

~1.7–2.3MB
~38K SLoC