Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 438 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 438 Bytes

deno-wcwidth

Deno port of Node's port of the C port of wcwidth() and wcswidth()

About

Determine columns needed for a fixed-size wide-character string. Refer to the original for more info. This was more to try out Deno than anything else ¯\(ツ)/¯.

Usage

'한'.length    // => 1
wcwidth('한');   // => 2

'한글'.length    // => 2
wcwidth('한글'); /

License

MIT