count the words in a string or rich text editor or html. Support for english, Chinese.
MIT License
Count the words in a string or rich text editor or html. Support for english, Chinese.
Install with npm:
$ npm install @ycjcl868/wordcount --save
var wordCount = require('@ycjcl868/wordcount');
wordCount('count words.');
//=> 2
wordCount('count words, again.');
//=> 3
wordCount('<p>should html</p><br /><p>hello</p>')
//=> 4
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Kylin King
Copyright 2018, Kylin King. Released under the MIT license.