# Unescaper
### Unescape strings with escape sequences written out as literal characters.
[](https://www.gnu.org/licenses/gpl-3.0)
[](https://github.com/hack-ink/unescaper/actions/workflows/checks.yml)
[](https://github.com/hack-ink/unescaper/tags)
[](https://github.com/hack-ink/unescaper)
[](https://github.com/hack-ink/unescaper)
Usage
More Examples
rust
fn main() {
assert_eq!(unescaper::unescape(r"\u000a").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\u{a}").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\x0a").unwrap(), "\n");
assert_eq!(unescaper::unescape(r"\12").unwrap(), "\n");
}
Thanks
The idea comes from unescape-rs.
The last commit of that repository was seven years ago.
So, I think it is no longer maintained.
That's why I created this repository, and I have made some improvements.