Home / npm packages / prettier
Every file of prettier@3.9.9 as published on npm: 54 files, 7.7 MB. Search them by exact text or regex, in milliseconds.
It uses: new Function(), child_process, process.env, the fs module, crypto.
| API | In prettier | |
|---|---|---|
| eval() runs a string as JavaScript | No | Who does |
| new Function() builds a function from a string, like eval (with or without new) | Yes: 1 file e.g. bin/prettier.cjs | See the lines |
| child_process starts other programs | Yes: 2 files e.g. plugins/typescript.js | See the lines |
| process.env reads environment variables | Yes: 4 files e.g. bin/prettier.cjs | See the lines |
| the fs module reads and writes files | Yes: 4 files e.g. internal/experimental-cli-worker.mjs | See the lines |
| 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 | Yes: 2 files e.g. internal/experimental-cli.mjs | See the lines |
| 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 |
|---|---|
plugins/typescript.js | 902 KB |
plugins/typescript.mjs | 901 KB |
index.mjs | 644 KB |
internal/experimental-cli.mjs | 458 KB |
THIRD-PARTY-NOTICES.md | 363 KB |
plugins/babel.js | 319 KB |
plugins/babel.mjs | 318 KB |
plugins/markdown.js | 294 KB |
plugins/markdown.mjs | 293 KB |
internal/legacy-cli.mjs | 216 KB |
plugins/estree.js | 213 KB |
plugins/estree.mjs | 212 KB |
plugins/html.js | 169 KB |
plugins/html.mjs | 169 KB |
plugins/postcss.js | 160 KB |
plugins/postcss.mjs | 160 KB |
plugins/acorn.js | 154 KB |
plugins/acorn.mjs | 154 KB |
plugins/yaml.mjs | 143 KB |
plugins/glimmer.js | 140 KB |
plugins/glimmer.mjs | 139 KB |
plugins/yaml.js | 136 KB |
plugins/angular.js | 133 KB |
plugins/angular.mjs | 132 KB |
plugins/meriyah.js | 127 KB |
plugins/meriyah.mjs | 126 KB |
internal/experimental-cli-worker.mjs | 89 KB |
standalone.js | 82 KB |
standalone.mjs | 82 KB |
doc.js | 62 KB |
Version 3.9.9 of prettier publishes 54 files of source, 7.7 MB in all, not counting images, fonts and source maps.
No: prettier doesn't call eval() anywhere in its published files.
Yes: prettier uses child_process in 2 of its files.
No: prettier 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.