use-js-identifier
ASCII-safe JavaScript identifier primitives for RustUse.
Experimental
use-js-identifier is experimental while use-js remains below 0.3.0.
Example
use ;
let identifier = new?;
assert_eq!;
assert!;
# Ok::
Scope
- Ordinary ASCII-safe JavaScript identifier validation.
$,_, ASCII letters, and ASCII digits in continuation positions.- Small newtype helpers for metadata models.
Non-goals
- Complete Unicode ECMAScript identifier validation.
- Keyword or reserved-word checks.
- Source-code parsing.
Unicode-complete ECMAScript identifier validation is future work.
License
Licensed under either Apache-2.0 or MIT.