Skip to content

Chinese and Japanese character support

Jakub T. Jankiewicz edited this page Nov 29, 2019 · 1 revision

With special wcwidth library you can have proper text wrapping on terminal with wider characters like those from Chinese or Japanese. The package is on npm but it don't include the file proper for browsers (no UMD - Universal Module Definition), you can spam the author on this issue on github.

But you can grab the version I've created using browserify, you can get it from jsdelivr (you can also host it yourself):

<script src="https://cdn.jsdelivr.net/gh/jcubic/static/js/wcwidth.js"></script>
Clone this wiki locally