</>PackageGraphPackageGraph

get-east-asian-width

npmv1.6.0TypeScript

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

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.

14 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 >=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.

PackageWeekly downloadsDependentsLicenseLast release
get-east-asian-widththis page69.3M1MIT4 months ago
string-width03MIT18 hours ago
index-to-position01MIT17 hours ago
strip-bom01MIT18 hours ago
camelcase95.7M2MIT15 hours ago
indent-string94M2MIT18 hours ago

Dependencies

Declared by get-east-asian-width v1.6.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (5)

ava ^5.3.1outdent ^0.8.0simplify-ranges ^0.1.0typescript ^5.2.2xo ^0.56.0

Used by

Popular packages that depend on get-east-asian-width.

Relationship graph

Dependencies (left) and dependents (right) of get-east-asian-width.

string-widthget-east-asian-wi…
get-east-asian-width dependencies dependents

Release history

4 releases in the last two years, typically about 79 days apart.

Recent versions of get-east-asian-width
VersionPublishedSizeLicense
1.6.0latest4 months ago14 KBMIT
1.5.06 months ago14 KBMIT
1.4.01 year ago15 KBMIT
1.3.11 year ago15 KBMIT
1.3.01 year ago15 KBMIT
1.2.02 years ago15 KBMIT
1.1.02 years ago15 KBMIT
1.0.02 years ago41 KBMIT

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

Keywords

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.