1.0.1 • Published 3 years ago
nv-repr-basic v1.0.1
nv-repr-basic
- nv-repr-basic
install
- npm install nv-repr-basic
usage
const repr_bsc = require("nv-repr-basic");
repr_bsc.char_width("哦")
> 2
repr_bsc.char_width("a")
> 1
example
APIS
- repr_bsc.char_width(ch);
THANKS
- char_width is wcsize of https://www.npmjs.com/package/wcstring
LICENSE
- ISC