1.0.0 • Published 1 year ago
get-byte-length v1.0.0
get byte length
返回字符串的字节数。
Installation
npm i get-byte-length
Usage
import getByteLength from 'get-byte-length'
getByteLength('abel'); // 4
getByteLength('我爱你'); // 9
getByteLength('äöüß'); // 8
1.0.0
1 year ago