Decision Workspace
jsesc vs descape vs js-string-escape
Side-by-side comparison of Rust crates
49
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.
51
descape
growingv3.0.0
Adds a single extension trait for &str to unescape any backslashes.
49
js-string-escape
experimentalv0.1.0
Escape a string for use as a JavaScript string literal body. A faithful port of the js-string-escape npm package. Zero deps, no_std.
Core Metrics
| jsesc | descape | js-string-escape | |
|---|---|---|---|
| Health Score | 49 | 51 | 49 |
| Total Downloads | 16 | 94.6K | 17 |
| 30d Downloads | 0 | 8.6K | 0 |
| Dependents | 0 | 61 | 0 |
| Releases | 1 | 12 | 1 |
| Last Updated | 19d ago | 330d ago | 19d ago |
| Age | 19d | 2y 4m | 19d |
Health Breakdown
jsesc
Maintenance
12
Quality
15
Community
6
Popularity
1
Documentation
15
descape
Maintenance
8
Quality
17
Community
11
Popularity
6
Documentation
9
js-string-escape
Maintenance
12
Quality
15
Community
6
Popularity
1
Documentation
15
Technical Details
| jsesc | descape | js-string-escape | |
|---|---|---|---|
| Version | 0.1.0 | 3.0.0 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT OR Apache-2.0 | Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 0 | 0 | 0 |
| Crate Size | 11KB | 13KB | 8KB |
| Features | 0 | 2 | 0 |
| Yanked % | 0.0% | 33.3% | 0.0% |
| Edition | 2021 | 2018 | 2021 |
| MSRV | 1.81 | — | 1.81 |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •descape leads with a health score of 51/100, but none of the options score above 80.
- •jsesc, js-string-escape are pre-1.0 — API may change.