wordcount
Count the words in a string. Support for english, CJK and Cyrillic.
Last updated 5 years ago by jonschlinkert .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install wordcount 
SYNC missed versions from official npm registry.

wordcount NPM version

Count the words in a string. Support for english, CJK and Cyrillic.

Install with npm

$ npm i wordcount --save

Usage

var wordcount = require('wordcount');

wordcount('Count the words in string.');
//=> 5
wordcount('Count the words in string, again.');
//=> 6

Related projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

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

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on September 22, 2015.

Current Tags

  • 1.1.1                                ...           latest (5 years ago)

6 Versions

  • 1.1.1                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago

Copyright 2014 - 2017 © taobao.org |