0.0.4 • Published 2 years ago
@adraffy/ens-norm-uts46.js v0.0.4
ENS Name Normalization UTS46 Implementation
- Generate entire family of UTS46
ToUnicode()
functions - Passes 100% IDNATestV2
- Supports ContextO
Example
import {create_uts46} from '@adraffy/ens-norm-uts46.js'; // npm i @adraffy/ens-norm-uts46.js
// browser: https://unpkg.com/@adraffy/ens-norm-uts46.js@latest/dist/index.min.js
const uts46 = await create_uts46({
version: 2003,
use_STD3: true,
valid_deviations: true,
check_hyphens: true,
check_bidi: true,
contextJ: true,
contextO: false,
check_leading_cm: true,
punycode: true
});
console.log(uts46('RAFFY.ETH'));
Build
npm run update
— download and parse latest Unicode datanpm run test
— run IDNATestV2npm run build
— create /dist/