tr46
npmv6.0.0An implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing
Safe to adopt
Yes — tr46 scores well across adoption, maintenance, weight, supply chain, and licensing. 192.6M downloads per week and 1 known dependents. Last published 357 days ago. 3 releases in the last 2 years.
- AAdoption: grade A, Excellent.
192.6M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 357 days ago. 3 releases in the last 2 years.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 256 KB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 6 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding tr46 to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Licenses in the dependency tree
Every license you inherit by installing tr46, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=20
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
tr46 vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| tr46this page | 192.6M | 1 | MIT | 11 months ago |
| punycode | 148.9M | 2 | MIT | 1 day ago |
| cross-fetch | 32.9M | 2 | MIT | 1 day ago |
| node-fetch | 172.9M | 9 | MIT | 1 day ago |
| @jridgewell/resolve-uri | 166.3M | 1 | MIT | 1 day ago |
| undici | 158.5M | 15 | MIT | 1 day ago |
Dependencies
Declared by tr46 v6.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (5)
Used by
Popular packages that depend on tr46.
Relationship graph
Dependencies (left) and dependents (right) of tr46.
Frequently installed together
An extremely fast JavaScript and CSS bundler and minifier.
An AST-based pattern checker for JavaScript.
🔎 A simple, tiny and lightweight benchmarking library!
Implements the WebIDL algorithms for converting to and from JavaScript values
Various operations on Uint8Array data
Release history
3 releases in the last two years, typically about 154 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 6.0.0latest | 11 months ago | 223 KB | MIT |
| 5.1.1 | 1 year ago | 221 KB | MIT |
| 5.1.0 | 1 year ago | 221 KB | MIT |
| 5.0.0 | 2 years ago | 215 KB | MIT |
| 4.1.1 | 3 years ago | 213 KB | MIT |
| 4.1.0 | 3 years ago | 213 KB | MIT |
| 4.0.0 | 3 years ago | 213 KB | MIT |
| 3.0.0 | 5 years ago | 210 KB | MIT |
| 2.1.0 | 5 years ago | 205 KB | MIT |
| 2.0.2 | 6 years ago | 203 KB | MIT |
| 2.0.1 | 6 years ago | 203 KB | MIT |
| 2.0.0 | 6 years ago | 325 KB | MIT |
| 1.0.1 | 9 years ago | — | MIT |
| 1.0.0 | 9 years ago | — | MIT |
| 0.0.3 | 10 years ago | — | MIT |
Overview
tr46 is an npm package that an implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing. It is extremely widely used, with about 192.6M downloads per week and 1 known dependents in the graph. The latest version is 6.0.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need an implementation of the Unicode UTS #46: Unicode IDNA Compatibility Processing and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (192.6M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use tr46?
Yes — tr46 scores well across adoption, maintenance, weight, supply chain, and licensing. 192.6M downloads per week and 1 known dependents. Last published 357 days ago. 3 releases in the last 2 years.
How do I install tr46?
Run `npm install tr46` to add tr46 to your npm project.
How many dependencies does tr46 have?
tr46 declares 6 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 256 KB on disk.
What license is tr46 released under?
tr46 is distributed under the MIT license.
How popular is tr46?
tr46 has approximately 192,593,878 downloads per week and 1 known dependent packages.
Is tr46 still maintained?
The most recent release of tr46 (v6.0.0) was published 11 months ago.
Does tr46 run install scripts?
No. tr46 does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.