# word-count

> Word count in respect of CJK characters.

Latest version **0.3.1** (published 2025-02-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install word-count
pnpm add word-count
yarn add word-count
bun add word-count
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2025-02-20 |
| First published | 2014-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Hsiaoming Yang |
| Maintainers | lepture |
| Keywords | count, word-count |

## Links

- npm: https://www.npmjs.com/package/word-count
- Repository: https://github.com/lepture/word-count
- Homepage: https://github.com/lepture/word-count#readme
- Issues: https://github.com/lepture/word-count/issues
- npm.io page: https://npm.io/package/word-count

## Recent versions

- 0.3.1 (latest) — 2025-02-20
- 0.3.0 — 2025-02-20
- 0.2.2 — 2016-03-29
- 0.2.1 — 2015-08-12
- 0.2.0 — 2015-08-12
- 0.1.0 — 2014-02-10

## README

# word-count

Word count in respect of CJK characters.

## Installation

Install with npm:

    $ npm install word-count

## API

```js
import count from 'word-count'

const text = 'hello means 你好'
count(text)
// 4
```

## License

MIT

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