</>PackageGraphPackageGraph

tr46

npmv6.0.0

An 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.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

256 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

MIT

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.

PackageWeekly downloadsDependentsLicenseLast release
tr46this page192.6M1MIT11 months ago
punycode148.9M2MIT1 day ago
cross-fetch32.9M2MIT1 day ago
node-fetch172.9M9MIT1 day ago
@jridgewell/resolve-uri166.3M1MIT1 day ago
undici158.5M15MIT1 day ago

Dependencies

Declared by tr46 v6.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (1)

Dev (5)

@domenic/eslint-config ^4.0.1@unicode/unicode-17.0.0 ^1.6.12eslint ^9.35.0globals ^16.4.0regenerate ^1.4.2

Used by

Popular packages that depend on tr46.

Relationship graph

Dependencies (left) and dependents (right) of tr46.

punycodewhatwg-urltr46
tr46 dependencies dependents

Frequently installed together

Release history

3 releases in the last two years, typically about 154 days apart.

Recent versions of tr46
VersionPublishedSizeLicense
6.0.0latest11 months ago223 KBMIT
5.1.11 year ago221 KBMIT
5.1.01 year ago221 KBMIT
5.0.02 years ago215 KBMIT
4.1.13 years ago213 KBMIT
4.1.03 years ago213 KBMIT
4.0.03 years ago213 KBMIT
3.0.05 years ago210 KBMIT
2.1.05 years ago205 KBMIT
2.0.26 years ago203 KBMIT
2.0.16 years ago203 KBMIT
2.0.06 years ago325 KBMIT
1.0.19 years agoMIT
1.0.09 years agoMIT
0.0.310 years agoMIT

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.

Maintainers

Keywords

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.