0.1.0 • Published 9 years ago
@ersinfotech/wordcount v0.1.0
wordcount
Install
npm i --save @ersinfotech/wordcount
Usage
var wordcount = require('@ersinfotech/wordcount');
var result = wordcount('中英混合 counting is a difficult issue.');
// {
// enWords: 5,
// cnWords: 4,
// totalWords: 9,
// enCharacters: 25,
// totalCharactersWithMarks: 30,
// totalCharactersWithSpace: 35,
// marks: 1,
// lines: 0,
// blanks: 5
// }
License
MIT
0.1.0
9 years ago