1.0.3 • Published 3 years ago

count-chinese v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Count Chinese

npm

Count the number of Chinese (Mandarin) character in a string.

  • Work for both simplified and traditional Chinese.
  • Doesn't count everything else other than Chinese character (space, number, symbol, etc. are all ignored)

Install

npm install count-chinese

Usage

const countChinese = require('count-chinese');
countChinese('Hi!,我是台灣人。') // count = 5
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago