Home / npm packages / highlight.js
Every file of highlight.js@11.12.0 as published on npm: 1,567 files, 5.5 MB. Search them by exact text or regex, in milliseconds.
It uses: eval().
| API | In highlight.js | |
|---|---|---|
| eval() runs a string as JavaScript | Yes: 2 files e.g. es/languages/julia.js | See the lines |
| new Function() builds a function from a string, like eval (with or without new) | No | Who does |
| child_process starts other programs | No | Who does |
| process.env reads environment variables | No | Who does |
| the fs module reads and writes files | No | Who does |
| http / https makes or serves HTTP requests with Node's own modules | No | Who does |
| fetch() makes HTTP requests | No | Who does |
| XMLHttpRequest makes HTTP requests the old browser way | No | Who does |
| crypto hashes, encrypts or makes random numbers | No | Who does |
| WebAssembly loads WebAssembly code | No | Who does |
| document.cookie reads or writes browser cookies | No | Who does |
| install scripts runs a script when it's installed | No | Who does |
Exact matches in the published files, so a mention in a comment counts too: open the lines to check.
| File | Size |
|---|---|
CHANGES.md | 156 KB |
es/languages/mathematica.js | 148 KB |
lib/languages/mathematica.js | 148 KB |
es/languages/isbl.js | 108 KB |
lib/languages/isbl.js | 108 KB |
es/languages/gml.js | 78 KB |
lib/languages/gml.js | 78 KB |
lib/core.js | 76 KB |
es/languages/1c.js | 65 KB |
lib/languages/1c.js | 65 KB |
es/languages/sqf.js | 63 KB |
lib/languages/sqf.js | 63 KB |
es/languages/maxima.js | 33 KB |
lib/languages/maxima.js | 33 KB |
es/languages/pgsql.js | 29 KB |
lib/languages/pgsql.js | 29 KB |
SUPPORTED_LANGUAGES.md | 26 KB |
es/languages/swift.js | 23 KB |
lib/languages/swift.js | 23 KB |
es/languages/less.js | 22 KB |
lib/languages/less.js | 22 KB |
es/languages/arduino.js | 22 KB |
lib/languages/arduino.js | 22 KB |
es/languages/typescript.js | 21 KB |
lib/languages/typescript.js | 21 KB |
es/languages/x86asm.js | 21 KB |
lib/languages/x86asm.js | 21 KB |
es/languages/scss.js | 20 KB |
lib/languages/scss.js | 20 KB |
README.md | 20 KB |
Version 11.12.0 of highlight.js publishes 1,567 files of source, 5.5 MB in all, not counting images, fonts and source maps.
Yes: highlight.js calls eval() in 2 of its files.
No: highlight.js doesn't use child_process anywhere in its published files.
No: highlight.js has no preinstall, install or postinstall script in its package.json.
The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.