Home / npm packages / postcss

postcss source code

Every file of postcss@8.5.28 as published on npm: 55 files, 218 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env, the fs module.

What postcss uses

APIIn postcss
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
NoWho does
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 6 files
e.g. lib/lazy-result.js
See the lines
the fs module
reads and writes files
Yes: 1 file
e.g. lib/previous-map.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
lib/lazy-result.js16 KB
lib/parser.js15 KB
lib/node.d.ts15 KB
lib/container.d.ts14 KB
lib/node.js13 KB
lib/container.js12 KB
lib/stringifier.js12 KB
lib/postcss.d.ts12 KB
lib/map-generator.js10 KB
lib/input.js7.3 KB
lib/tokenize.js6.7 KB
lib/css-syntax-error.d.ts6.4 KB
lib/previous-map.js5.1 KB
lib/input.d.ts5.1 KB
lib/lazy-result.d.ts4.9 KB
lib/result.d.ts4.3 KB
lib/declaration.d.ts3.9 KB
lib/css-syntax-error.js3.4 KB
lib/at-rule.d.ts3.4 KB
lib/processor.d.ts3.3 KB
lib/warning.d.ts2.9 KB
lib/postcss.js2.9 KB
lib/rule.d.ts2.9 KB
lib/fromJSON.js2.8 KB
lib/no-work-result.js2.6 KB
package.json2.5 KB
lib/root.d.ts2.3 KB
lib/document.d.ts1.9 KB
lib/previous-map.d.ts1.8 KB
lib/processor.js1.7 KB

Questions

How many files are in postcss?

Version 8.5.28 of postcss publishes 55 files of source, 218 KB in all, not counting images, fonts and source maps.

Does postcss use eval?

No: postcss doesn't call eval() anywhere in its published files.

Does postcss start other programs?

No: postcss doesn't use child_process anywhere in its published files.

Does postcss run an install script?

No: postcss has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine