highlight-words
Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.
highlight-words@2.0.0 was published on 2024-09-03. Its manifest declares 0 runtime dependencies and 0 peer requirements. Type declarations are bundled according to the package metadata. The declared Node.js requirement is >= 20.
All highlight-words versions ยท Permanent reference to 2.0.0
Package specifications
| Version | 2.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2024-09-03T08:36:55.525Z |
| Node.js requirement | >= 20 |
| Type declarations | Bundled declarations |
| Runtime dependency count | 0 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 43.02 KiB |
| Published file count | 11 |
| Package type | commonjs |
| ES module entry | dist/highlight-words.mjs |
| Default entry | dist/highlight-words.js |
| Side effects declaration | Not declared |
| Direct advisories | Unknown |
| Resolved graph dependencies | Unknown |
| Repository stars | Unknown |
| Repository forks | Unknown |
Install highlight-words 2.0.0
npm install highlight-words@2.0.0 pnpm add highlight-words@2.0.0 yarn add highlight-words@2.0.0
Runtime dependencies
- None declared
Peer requirements
- None declared
Optional dependencies
- None declared
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
Evidence and freshness
- https://registry.npmjs.org/highlight-words/2.0.0 โ retrieved 2026-10-31T13:47:47.936Z