</>PackageGraphPackageGraph

y18n

npmv5.0.8

the bare-bones internationalization library used by yargs

Not recommended for new projects

No — y18n should not be adopted for new projects. Last published 1981 days ago.

  • AAdoption: grade A, Excellent.

    126.1M downloads per week and 1 known dependents.

  • FMaintenance: grade F, Failing.

    Last published 1981 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 23 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    ISC — 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 y18n to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

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

23 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=10
Module format
ESM + CommonJS
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the y18n README.

const __ = require('y18n')().__;

console.log(__('my awesome string %s', 'foo'));

y18n vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
y18nthis page126.1M1ISC5 years ago
yargs-parser178.8M2ISC1 day ago
get-east-asian-width69.3M1MIT1 day ago
moment31.5M2MIT1 day ago

Dependencies

Declared by y18n v5.0.8. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (12)

@types/node ^14.6.4@wessberg/rollup-plugin-ts ^1.3.1c8 ^7.3.0chai ^4.0.1cross-env ^7.0.2gts ^3.0.0mocha ^8.0.0rimraf ^3.0.2rollup ^2.26.10standardx ^7.0.0ts-transform-default-export ^1.0.2typescript ^4.0.0

Used by

Popular packages that depend on y18n.

Relationship graph

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

yargsy18n
y18n dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 14 days apart.

Recent versions of y18n
VersionPublishedSizeLicense
5.0.8latest5 years ago23 KBISC
4.0.35 years ago11 KBISC
5.0.75 years ago23 KBISC
4.0.25 years ago22 KBISC
5.0.65 years ago22 KBISC
3.2.25 years ago8.8 KBISC
4.0.15 years ago10 KBISC
5.0.55 years ago22 KBISC
5.0.45 years ago21 KBISC
5.0.35 years ago21 KBISC
5.0.26 years ago21 KBISC
6.0.0-alpha.06 years ago20 KBISC
5.0.16 years ago20 KBISC
5.0.06 years ago20 KBISC
4.0.09 years agoISC

Overview

y18n is an npm package that the bare-bones internationalization library used by yargs. It is extremely widely used, with about 126.1M downloads per week and 1 known dependents in the graph. The latest version is 5.0.8, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need the bare-bones internationalization library used by yargs 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 (126.1M weekly downloads).
  • Clear open-source license (ISC).

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 y18n?

No — y18n should not be adopted for new projects. Last published 1981 days ago.

How do I install y18n?

Run `npm install y18n` to add y18n to your npm project.

What license is y18n released under?

y18n is distributed under the ISC license.

How popular is y18n?

y18n has approximately 126,130,642 downloads per week and 1 known dependent packages.

Is y18n still maintained?

The most recent release of y18n (v5.0.8) was published 5 years ago.

Does y18n run install scripts?

No. y18n does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.