0.0.8 • Published 2 years ago
@adraffy/ensip-norm v0.0.8
ENS Name Normalization Standard
Implementations
Javascript
- Reference: @adraffy/ens-norm-ref-impl
- Optimized: @adraffy/ens-normalize
Solidity
- Experimental: @adraffy/ens-norm-research
Data Files
chars.json
— single-codepoint logicvalid
— list of valid codepointsmapped
— list of codepoint to mapped codepoint(s):[cp, [cp, ...]
ignored
— list of ignored codepointscm
— list of combining mark codepoints (subset of valid)emoji.json
— fully-qualified emoji sequencestests.json
— validation tests
Data files available as imports:
import {VERSION, CHARS, EMOJI, TESTS, run_tests} from '@adraffy/ensip-norm';
// npm i @adraffy/ensip-norm
// run validation tests
// returns array of errors
let errors = run_tests(name => name.toLowerCase()); // just for example
Build
npm run build
— compile data files intoindex.js