@ycjcl868/wordcount

count the words in a string or rich text editor or html. Support for english, Chinese.

Stats

StarsIssuesVersionUpdatedCreatedSize
@ycjcl868/wordcount
401.0.23 years ago3 years agoMinified + gzip package size for @ycjcl868/wordcount in KB

Readme

wordcount

Count the words in a string or rich text editor or html. Support for english, Chinese.

Install

Install with npm:

$ npm install @ycjcl868/wordcount --save

Usage

var wordCount = require('@ycjcl868/wordcount');

wordCount('count words.');
//=> 2
wordCount('count words, again.');
//=> 3
wordCount('<p>should 你好 html</p><br /><p>hello</p>')
//=> 4

ChangeLogs

  • v1.0.2 2018.7.31

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(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

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Kylin King

License

Copyright © 2018, Kylin King. Released under the MIT license.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.