y18n
npmv5.0.8the 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.
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.
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| y18nthis page | 126.1M | 1 | ISC | 5 years ago |
| yargs-parser | 178.8M | 2 | ISC | 1 day ago |
| get-east-asian-width | 69.3M | 1 | MIT | 1 day ago |
| moment | 31.5M | 2 | MIT | 1 day ago |
Dependencies
Declared by y18n v5.0.8. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (12)
Used by
Popular packages that depend on y18n.
Relationship graph
Dependencies (left) and dependents (right) of y18n.
Frequently installed together
Like which(1) unix command. Find the first instance of an executable in the PATH.
easily create complex multi-column command-line-interfaces
the mighty option parser used by yargs
An AST-based pattern checker for JavaScript.
A tiny (183B to 210B) and fast utility to ascend parent directories
TypeScript definitions for chai
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
TypeScript definitions for node
Get the visual width of a string - the number of columns required to display it
Cross platform child_process#spawn and child_process#spawnSync
[](https://travis-ci.org/stefanpenner/get-caller-file) [](https://ci.a
Babel preset for TypeScript.
Release history
No releases in the last two years, typically about 14 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.0.8latest | 5 years ago | 23 KB | ISC |
| 4.0.3 | 5 years ago | 11 KB | ISC |
| 5.0.7 | 5 years ago | 23 KB | ISC |
| 4.0.2 | 5 years ago | 22 KB | ISC |
| 5.0.6 | 5 years ago | 22 KB | ISC |
| 3.2.2 | 5 years ago | 8.8 KB | ISC |
| 4.0.1 | 5 years ago | 10 KB | ISC |
| 5.0.5 | 5 years ago | 22 KB | ISC |
| 5.0.4 | 5 years ago | 21 KB | ISC |
| 5.0.3 | 5 years ago | 21 KB | ISC |
| 5.0.2 | 6 years ago | 21 KB | ISC |
| 6.0.0-alpha.0 | 6 years ago | 20 KB | ISC |
| 5.0.1 | 6 years ago | 20 KB | ISC |
| 5.0.0 | 6 years ago | 20 KB | ISC |
| 4.0.0 | 9 years ago | — | ISC |
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.
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.