Skip to content

[Replacement]: eastasianwidth #741

Description

@tats-u

Package to replace

eastasianwidth

Suggested replacement(s)

  • get-east-asian-width
  • (meaw)

If you're using it solely to get the terminal character width:

Manifest type

preferred (lighter or more modern alternative package)

Rationale

eastasianwidth has not been updated for a long time and is not based on the latest Unicode version.

get-east-asian-width is regularly synced with the latest Unicode version in minor releases like Node.js and much more popular than meaw.
meaw introduces major version bump when syncing with Unicode versions so is less recommended.

If you're using it solely to get the terminal character width, string-width-like packages are preferred because they can handle grapheme clusters composed of more than one characters.

Availability

No response

Code example (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions