Gathering detailed insights and metrics for @oozcitak/uts46
Gathering detailed insights and metrics for @oozcitak/uts46
Gathering detailed insights and metrics for @oozcitak/uts46
Gathering detailed insights and metrics for @oozcitak/uts46
npm install @oozcitak/uts46
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
4 Stars
51 Commits
2 Watching
4 Branches
1 Contributors
Updated on 21 Mar 2023
TypeScript (100%)
Cumulative downloads
Total Downloads
Last day
162.9%
92
Compared to previous day
Last week
17.1%
308
Compared to previous week
Last month
49.9%
1,196
Compared to previous month
Last year
809%
6,499
Compared to previous year
2
6
A Javascript implementation of Unicode IDNA Compatibility Processing (UTS 46).
Current version implements the standard as of version 24.
The library exports the following functions:
Converts a domain name string to ASCII. Returns the converted string or null
if an
error occurs during conversion.
domainName
- a domain name stringoptions
- an object with the following boolean properties:
useSTD3ASCIIRules
- determines whether to abide by the rules in
STD3. These rules exclude ASCII
characters outside the set consisting of A-Z, a-z, 0-9, and U+002D ( - )
HYPHEN-MINUS. Defaults to true
.checkHyphens
- determines whether to allow a domain name label to start
or end with a U+002D ( - ) HYPHEN-MINUS character and also to contain
a hyphen-minus in both its third and fourth characters. Defaults to true
.checkBidi
- determines whether to abide by the rules of
RFC 5893 for a bidirectional domain
name. Defaults to true
.checkJoiners
- determines whether to abide by the rules of
RFC 5892 ContextJ. Defaults to true
.transitionalProcessing
- determines whether to replace deviation characters
in the domain name string. Defaults to true
.verifyDnsLength
- determines whether to apply DNS length restrictions to
the domain name string and its labels. Defaults to true
.Converts a domain name string to Unicode.
domainName
- a domain name stringoptions
- an object with the following boolean properties:
useSTD3ASCIIRules
- determines whether to abide by the rules in
STD3. These rules exclude ASCII
characters outside the set consisting of A-Z, a-z, 0-9, and U+002D ( - )
HYPHEN-MINUS. Defaults to true
.checkHyphens
- determines whether to allow a domain name label to start
or end with a U+002D ( - ) HYPHEN-MINUS character and also to contain
a hyphen-minus in both its third and fourth characters. Defaults to true
.checkBidi
- determines whether to abide by the rules of
RFC 5893 for a bidirectional domain
name. Defaults to true
.checkJoiners
- determines whether to abide by the rules of
RFC 5892 ContextJ. Defaults to true
.transitionalProcessing
- Determines whether to replace deviation characters
in the domain name string. Defaults to true
.output
- an object containing a single boolean error
property that is set on return
indicating if any errors were encountered during conversion.1// toUnicode without transitional processing
2toUnicode("fass.de", { transitionalProcessing: false }); // "fass.de"
3toUnicode("faß.de", { transitionalProcessing: false }); //"faß.de"
4toUnicode("Faß.de", { transitionalProcessing: false }); // "faß.de"
5toUnicode("xn--fa-hia.de", { transitionalProcessing: false }); // "faß.de"
6
7// toASCII with transitional processing
8toASCII("fass.de"); // "fass.de"
9toASCII("faß.de"); // "fass.de"
10toASCII("Faß.de"); // "fass.de"
11toASCII("xn--fa-hia.de"); // "xn--fa-hia.de"
12
13// toASCII without transitional processing'
14toASCII("fass.de", { transitionalProcessing: false }); // "fass.de"
15toASCII("faß.de", { transitionalProcessing: false }); // "xn--fa-hia.de"
16toASCII("Faß.de", { transitionalProcessing: false }); // "xn--fa-hia.de"
17toASCII("xn--fa-hia.de", { transitionalProcessing: false }); // "xn--fa-hia.de"
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/12 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More