get-east-asian-width
npmv1.6.0TypeScriptDetermine the East Asian Width of a Unicode character
Safe to adopt
Yes — get-east-asian-width scores well across adoption, maintenance, weight, supply chain, and licensing. 69.3M downloads per week and 1 known dependents. Last published 125 days ago. 5 releases in the last 2 years.
- AAdoption: grade A, Excellent.
69.3M downloads per week and 1 known dependents.
- BMaintenance: grade B, Good.
Last published 125 days ago. 5 releases in the last 2 years.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 14 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- 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 get-east-asian-width 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 >=18
- Module format
- ESM only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the get-east-asian-width README.
import {eastAsianWidth, eastAsianWidthType} from 'get-east-asian-width';
const codePoint = '字'.codePointAt(0);
console.log(eastAsianWidth(codePoint));
//=> 2
console.log(eastAsianWidthType(codePoint));
//=> 'wide'get-east-asian-width 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 |
|---|---|---|---|---|
| get-east-asian-widththis page | 69.3M | 1 | MIT | 4 months ago |
| string-width | 0 | 3 | MIT | 1 day ago |
| index-to-position | 0 | 1 | MIT | 1 day ago |
| strip-bom | 0 | 1 | MIT | 1 day ago |
| camelcase | 95.7M | 2 | MIT | 1 day ago |
| indent-string | 94M | 2 | MIT | 1 day ago |
Dependencies
Declared by get-east-asian-width v1.6.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (5)
Used by
Popular packages that depend on get-east-asian-width.
Relationship graph
Dependencies (left) and dependents (right) of get-east-asian-width.
Release history
4 releases in the last two years, typically about 79 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.6.0latest | 4 months ago | 14 KB | MIT |
| 1.5.0 | 6 months ago | 14 KB | MIT |
| 1.4.0 | 1 year ago | 15 KB | MIT |
| 1.3.1 | 1 year ago | 15 KB | MIT |
| 1.3.0 | 1 year ago | 15 KB | MIT |
| 1.2.0 | 2 years ago | 15 KB | MIT |
| 1.1.0 | 2 years ago | 15 KB | MIT |
| 1.0.0 | 2 years ago | 41 KB | MIT |
Overview
get-east-asian-width is an npm package that determine the East Asian Width of a Unicode character. It is extremely widely used, with about 69.3M downloads per week and 1 known dependents in the graph. The latest version is 1.6.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need determine the East Asian Width of a Unicode character and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (69.3M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use get-east-asian-width?
Yes — get-east-asian-width scores well across adoption, maintenance, weight, supply chain, and licensing. 69.3M downloads per week and 1 known dependents. Last published 125 days ago. 5 releases in the last 2 years.
How do I install get-east-asian-width?
Run `npm install get-east-asian-width` to add get-east-asian-width to your npm project.
What license is get-east-asian-width released under?
get-east-asian-width is distributed under the MIT license.
How popular is get-east-asian-width?
get-east-asian-width has approximately 69,349,620 downloads per week and 1 known dependent packages.
Is get-east-asian-width still maintained?
The most recent release of get-east-asian-width (v1.6.0) was published 4 months ago.
Does get-east-asian-width run install scripts?
No. get-east-asian-width does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.