UNPKG
word-count
Version:
latest (0.3.1)
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
Word count in respect of CJK characters.
github.com/lepture/word-count
lepture/word-count
word-count
/
README.md
24 lines
(14 loc)
•
240 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# word-count
Word count
in
respect of CJK characters.
## Installation
Install
with
npm: $ npm install word-count
## API
```js import count
from
'word-count'
const
text =
'hello means 你好'
count(text)
// 4
```
## License
MIT