nv-repr-basic
v1.0.1
Published
nv-repr-basic ============ - nv-repr-basic
Downloads
1
Readme
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