Decision Workspace
descape vs unescape vs jsesc
Side-by-side comparison of Rust crates
50
descape
growingv3.0.0
Adds a single extension trait for &str to unescape any backslashes.
44
unescape
growingv0.1.0
Unescapes strings with escape sequences written out as literal characters.
45
jsesc
experimentalv0.1.0
Escape a string for safe embedding in JavaScript or JSON source. A faithful port of the jsesc npm package's string escaping. Zero deps, no_std.
Core Metrics
| descape | unescape | jsesc | |
|---|---|---|---|
| Health Score | 50 | 44 | 45 |
| Total Downloads | 167.0K | 11.8M | 25 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 64 | 722 | 0 |
| Releases | 12 | 1 | 1 |
| Last Updated | 418d ago | 3871d ago | 108d ago |
| Age | 2y 7m | 10y 7m | 3m |
Health Breakdown
descape
Maintenance
7
Quality
17
Community
11
Popularity
6
Documentation
9
unescape
Maintenance
1
Quality
16
Community
11
Popularity
8
Documentation
8
jsesc
Maintenance
7
Quality
15
Community
6
Popularity
2
Documentation
15
Technical Details
| descape | unescape | jsesc | |
|---|---|---|---|
| Version | 3.0.0 | 0.1.0 | 0.1.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✗ No |
| License | Apache-2.0 OR MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 13KB | 2KB | 11KB |
| Features | 2 | 0 | 0 |
| Yanked % | 33.3% | 0.0% | 0.0% |
| Edition | 2018 | — | 2021 |
| MSRV | — | — | 1.81 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •descape leads with a health score of 50/100, but none of the options score above 80.
- •unescape has the most downloads (11.8M), suggesting wider adoption.
- •unescape is depended on by 722 crates — strongest ecosystem trust.
- •⚠ descape, unescape have not been updated in over a year.
- •unescape, jsesc are pre-1.0 — API may change.