Package
highlight-words
Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 313.3k
- +11% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 2 years ago
- v2.0.0
- GitHub stars
- 102
- 9 forks
- Open issues / PRs
- 0 / 2
- Contributors
- -
- Commits, last 52 weeks
- 35
Downloads
Last week 2026-09-15 to 2026-09-21
313,277 downloads last week, 1,233,896 in the last month. The 12-month change of +11% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 013 in total
- Latest version
- 2.0.0, 3 Sept 20242 years ago
- First published
- 8 Aug 2019
- Last push to GitHub
- 10 Sept 202614 days before the snapshot
- Repository archived
- No
- Open issues
- 0
- Open pull requests
- 2
- Commits, last 52 weeks
- 35
- Dependents on npm
- 40
Major versions
- v2 first release 2.0.0, 3 Sept 2024
- v1 first release 1.0.0, 8 Aug 2019
Recent releases
| Version | Published |
|---|---|
| 2.0.0 | 3 Sept 2024 |
| 1.2.2 | 1 May 2023 |
| 1.2.1 | 24 Oct 2022 |
| 1.2.0 | 26 Aug 2021 |
| 1.1.1 | 21 Apr 2021 |
| 1.1.0 | 17 Feb 2021 |
| 1.0.6 | 13 Apr 2020 |
| 1.0.5 | 19 Aug 2019 |
| 1.0.4 | 15 Aug 2019 |
| 1.0.3 | 9 Aug 2019 |
| 1.0.2 | 9 Aug 2019 |
| 1.0.1 | 8 Aug 2019 |
| 1.0.0 | 8 Aug 2019 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- >= 20
- Runtimes
- -
- Unpacked size (npm)
- 43 kB
- Dependencies (0)
- None
npm install highlight-words- jsDelivr
https://cdn.jsdelivr.net/npm/highlight-words@2.0.0/ - unpkg
https://unpkg.com/highlight-words@2.0.0/ - esm.sh
https://esm.sh/highlight-words@2.0.0
Indexability: Indexed.