UNPKG

cjk-count

Version:
9 lines (5 loc) 210 B
var cjkCount = require('./index'); var str = 'I am a 香港人'; var str3 = ' No results found.人口家庭教育就業收I am a 香港人'; console.log(cjkCount(str)); console.log(cjkCount(str3, true));