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

Version16.1.2
License declarationMIT
Published2026-10-08T15:58:23.214Z
Node.js requirement>= 16.20.2
Type declarationsNot declared
Runtime dependency count6
Peer requirement count1
Optional dependency count0
Minified size1542.45 KiB
Minified + gzip513.72 KiB
Unpacked distribution size2143.30 KiB
Published file count1995
Package typeNot declared
ES module entrydist/esm/index.js
Default entrydist/cjs/index.js
Side effects declarationfalse
Direct advisories0
Resolved graph dependencies26
Repository stars4673
Repository forks317

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

Peer requirements

Optional dependencies

  • None declared

Resolved dependency graph

This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.

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-Review4/10 — Found 9/22 approved changesets -- score normalized to 4
Maintained0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Dangerous-Workflow10/10 — no dangerous workflow patterns detected
Token-Permissions0/10 — detected GitHub workflow tokens with excessive permissions
CII-Best-Practices0/10 — no effort to earn an OpenSSF best practices badge detected
Binary-Artifacts10/10 — no binaries found in the repo
Security-Policy0/10 — security policy file not detected
Pinned-Dependencies0/10 — dependency not pinned by hash detected -- score normalized to 0
License10/10 — license file detected
Branch-Protection3/10 — branch protection is not maximal on development and all release branches
SAST7/10 — SAST tool detected but not run on all commits
Fuzzing0/10 — project is not fuzzed

Evidence and freshness