0.0.4 • Published 2 years ago

@adraffy/ens-norm-uts46.js v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ENS Name Normalization UTS46 Implementation

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 data
  • npm run test run IDNATestV2
  • npm run build create /dist/
0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago