string_unescape 1.5.1 copy "string_unescape: ^1.5.1" to clipboard
string_unescape: ^1.5.1 copied to clipboard

outdated

Handy utility to unescape string representation (unicode, newline, tab, etc).

String unescape #

Handy utility to unescape string representation (unicode, newline, tab, etc).

Example #

Unescape string #

expect(unescape(r"a\nb"), "a\nb");
expect(unescape(r"a\x0ab"), "a\nb");

Unescape character #

expect(unescapeChar(r"a"), 97);
expect(unescapeChar(r"🀀"), 0x1F000);
6
likes
30
pub points
86%
popularity

Publisher

unverified uploader

Handy utility to unescape string representation (unicode, newline, tab, etc).

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

More

Packages that depend on string_unescape