# wordcount

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

Latest version **1.1.1** (published 2015-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install wordcount
pnpm add wordcount
yarn add wordcount
bun add wordcount
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-09-22 |
| First published | 2014-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | count, match, number, regex, regexp, regular expression, string, word, word-count, wordcount, words |

## Links

- npm: https://www.npmjs.com/package/wordcount
- Repository: https://github.com/jonschlinkert/wordcount
- Issues: https://github.com/jonschlinkert/wordcount/issues
- npm.io page: https://npm.io/package/wordcount

## Dependencies (1)

- [match-words](https://npm.io/package/match-words.md) ^0.1.0

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2015-09-22
- 1.1.0 — 2015-09-22
- 1.0.1 — 2015-08-22
- 1.0.0 — 2014-12-24
- 0.2.0 — 2014-12-03
- 0.1.0 — 2014-06-15

## README

# wordcount [![NPM version](https://badge.fury.io/js/wordcount.svg)](http://badge.fury.io/js/wordcount)

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

Install with [npm](https://www.npmjs.com/)

```sh
$ npm i wordcount --save
```

## Usage

```js
var wordcount = require('wordcount');

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

## Related projects

* [is-whitespace](https://www.npmjs.com/package/is-whitespace): Returns true if the value passed is all whitespace. | [homepage](https://github.com/jonschlinkert/is-whitespace)
* [justified](https://www.npmjs.com/package/justified): Wrap words to a specified length and justified the text. | [homepage](https://github.com/jonschlinkert/justified)
* [match-words](https://www.npmjs.com/package/match-words): Match the words in a string. | [homepage](https://github.com/jonschlinkert/match-words)
* [whitespace-regex](https://www.npmjs.com/package/whitespace-regex): Regular expression for matching the whitespace in a string. | [homepage](https://github.com/regexps/whitespace-regex)
* [word-regex](https://www.npmjs.com/package/word-regex): Regular expression for matching words in a string. Support for english, CJK and Cyrillic. | [homepage](https://github.com/jonschlinkert/word-regex)
* [word-wrap](https://www.npmjs.com/package/word-wrap): Wrap words to a specified length. | [homepage](https://github.com/jonschlinkert/word-wrap)

## Running tests

Install dev dependencies:

```sh
$ npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/wordcount/issues/new).

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright © 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 22, 2015._

---
_Source: https://npm.io/package/wordcount · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
