Determine columns needed for a fixed-size wide-character string
'한'.length // => 1 wcwidth('한'); // => 2 '한글'.length // => 2 wcwidth('한글'); // => 4
wcwidth() and its string version,
wcswidth() are defined by IEEE Std
1002.1-2001, a.k.a. POSIX.1-2001, and return the number of columns used
to represent the given wide character and string.
Port of C's wcwidth() and wcswidth()
The npm package wcwidth receives a total of 14,064,637 weekly downloads. As such, wcwidth popularity was classified as popular.
We found that wcwidth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.