react-syntax-highlighter
syntax highlighting component for react with prismjs or highlightjs ast using inline styles
react-syntax-highlighter@16.1.2 was published on 2026-10-08. Its manifest declares 6 runtime dependencies and 1 peer requirement. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >= 16.20.2.
All react-syntax-highlighter versions · Permanent reference to 16.1.2
Package specifications
| Version | 16.1.2 |
|---|---|
| License declaration | MIT |
| Published | 2026-10-08T15:58:23.214Z |
| Node.js requirement | >= 16.20.2 |
| Type declarations | Not declared |
| Runtime dependency count | 6 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | 1542.45 KiB |
| Minified + gzip | 513.72 KiB |
| Unpacked distribution size | 2143.30 KiB |
| Published file count | 1995 |
| Package type | Not declared |
| ES module entry | dist/esm/index.js |
| Default entry | dist/cjs/index.js |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 26 |
| Repository stars | 4673 |
| Repository forks | 317 |
Install react-syntax-highlighter 16.1.2
npm install react-syntax-highlighter@16.1.2 pnpm add react-syntax-highlighter@16.1.2 yarn add react-syntax-highlighter@16.1.2
Runtime dependencies
- prismjs ^1.30.0
- lowlight ^1.17.0
- refractor ^5.0.0
- highlight.js ^10.4.1
- @babel/runtime ^7.28.4
- highlightjs-vue ^1.0.0
Peer requirements
- react >= 0.14.0
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @babel/runtime@7.29.10 — direct
- @types/hast@3.0.5 — indirect
- @types/prismjs@1.26.6 — indirect
- @types/unist@2.0.11 — indirect
- @types/unist@3.0.3 — indirect
- character-entities@2.0.2 — indirect
- character-entities-legacy@3.0.0 — indirect
- character-reference-invalid@2.0.1 — indirect
- comma-separated-tokens@2.0.3 — indirect
- decode-named-character-reference@1.3.0 — indirect
- fault@1.0.4 — indirect
- format@0.2.2 — indirect
- hast-util-parse-selector@4.0.0 — indirect
- hastscript@9.0.1 — indirect
- highlight.js@10.7.3 — direct
- highlightjs-vue@1.0.0 — direct
- is-alphabetical@2.0.1 — indirect
- is-alphanumerical@2.0.1 — indirect
- is-decimal@2.0.1 — indirect
- is-hexadecimal@2.0.1 — indirect
- lowlight@1.20.0 — direct
- parse-entities@4.0.2 — indirect
- prismjs@1.30.0 — direct
- property-information@7.2.0 — indirect
- refractor@5.0.0 — direct
- space-separated-tokens@2.0.2 — indirect
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.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 4/10 — Found 9/22 approved changesets -- score normalized to 4 |
|---|---|
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Security-Policy | 0/10 — security policy file not detected |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| License | 10/10 — license file detected |
| Branch-Protection | 3/10 — branch protection is not maximal on development and all release branches |
| SAST | 7/10 — SAST tool detected but not run on all commits |
| Fuzzing | 0/10 — project is not fuzzed |
Evidence and freshness
- https://registry.npmjs.org/react-syntax-highlighter/16.1.2 — retrieved 2026-10-29T09:32:04.494Z
- https://api.deps.dev/v3/systems/npm/packages/react-syntax-highlighter/versions/16.1.2 — retrieved 2026-10-29T09:32:05.044Z
- https://bundlephobia.com/api/size?package=react-syntax-highlighter%4016.1.2 — retrieved 2026-10-29T09:32:05.055Z
- https://api.deps.dev/v3/systems/npm/packages/react-syntax-highlighter/versions/16.1.2:dependencies — retrieved 2026-10-29T09:32:05.072Z
- https://api.deps.dev/v3/projects/github.com%2Freact-syntax-highlighter%2Freact-syntax-highlighter — retrieved 2026-10-29T09:32:05.204Z