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

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
110
pub points
86%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on string_unescape