refractor 5.0.0
Lightweight, robust, elegant virtual syntax highlighting using Prism
refractor@5.0.0 was published on 2025-03-11. Its manifest declares 4 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. No Node.js engine requirement is declared in this manifest.
All refractor versions · Permanent reference to 5.0.0 · Latest release
Package specifications
| Version | 5.0.0 |
|---|---|
| License declaration | MIT |
| Published | 2025-03-11T15:23:56.243Z |
| Node.js requirement | Not declared |
| Type declarations | Not declared |
| Runtime dependency count | 4 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 1069.80 KiB |
| Published file count | 609 |
| Package type | module |
| ES module entry | Not declared |
| Default entry | Not declared |
| Side effects declaration | ["lib/all.js","lib/common.js"] |
| Direct advisories | 0 |
| Resolved graph dependencies | 18 |
| Repository stars | 868 |
| Repository forks | 48 |
Install refractor 5.0.0
npm install refractor@5.0.0 pnpm add refractor@5.0.0 yarn add refractor@5.0.0
Runtime dependencies
- @types/hast ^3.0.0
- @types/prismjs ^1.0.0
- hastscript ^9.0.0
- parse-entities ^4.0.0
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @types/hast@3.0.5 — direct
- @types/prismjs@1.26.6 — direct
- @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
- hast-util-parse-selector@4.0.0 — indirect
- hastscript@9.0.1 — 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
- parse-entities@4.0.2 — direct
- property-information@7.2.0 — indirect
- 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 | 0/10 — Found 0/30 approved changesets -- score normalized to 0 |
|---|---|
| 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 |
| SAST | 0/10 — no SAST tool detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
Evidence and freshness
- https://registry.npmjs.org/refractor/5.0.0 — retrieved 2026-10-29T12:27:03.631Z
- https://api.deps.dev/v3/systems/npm/packages/refractor/versions/5.0.0:dependencies — retrieved 2026-10-29T12:00:43.135Z
- https://api.deps.dev/v3/systems/npm/packages/refractor/versions/5.0.0 — retrieved 2026-10-29T12:00:43.109Z (stale snapshot; refresh pending)
- https://api.deps.dev/v3/projects/github.com%2Fwooorm%2Frefractor — retrieved 2026-10-29T11:38:51.503Z