This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@adraffy/ensip-norm
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

ENS Name Normalization Standard

Current Standard (Draft)

Implementations

Javascript

Solidity

Data Files

  • chars.json — single-codepoint logic
    • valid — list of valid codepoints
    • mapped — list of codepoint to mapped codepoint(s): [cp, [cp, ...]
    • ignored — list of ignored codepoints
    • cm — list of combining mark codepoints (subset of valid)
  • emoji.json — fully-qualified emoji sequences
  • tests.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 into index.js

Package Sidebar

Install

npm i @adraffy/ensip-norm

Weekly Downloads

5

Version

0.0.8

License

CC0-1.0

Unpacked Size

4.21 MB

Total Files

8

Last publish

Collaborators

  • adraffy