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)
Package to replace
eastasianwidth
Suggested replacement(s)
If you're using it solely to get the terminal character width:
Bun.stringWidth(Bun dedicated)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)