Skip to content
JS
Package

highlight-words

Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.

v2.0.0, 3 Sept 2024MITESM + CommonJSTypes: BundledTypeScript tooling
$ npm install highlight-words

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
0200k400k600kSept 2025Mar 2026Sept 2026High 427.1k (12 May 2026)Low 150.8k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

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

  1. v2 first release 2.0.0, 3 Sept 2024
  2. v1 first release 1.0.0, 8 Aug 2019

Recent releases

VersionPublished
2.0.03 Sept 2024
1.2.21 May 2023
1.2.124 Oct 2022
1.2.026 Aug 2021
1.1.121 Apr 2021
1.1.017 Feb 2021
1.0.613 Apr 2020
1.0.519 Aug 2019
1.0.415 Aug 2019
1.0.39 Aug 2019
1.0.29 Aug 2019
1.0.18 Aug 2019
1.0.08 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
  • jsDelivrhttps://cdn.jsdelivr.net/npm/highlight-words@2.0.0/
  • unpkghttps://unpkg.com/highlight-words@2.0.0/
  • esm.shhttps://esm.sh/highlight-words@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.