Home / npm packages / stylus
Every file of stylus@0.64.0 as published on npm: 143 files, 366 KB. Search them by exact text or regex, in milliseconds.
It uses: eval(), new Function(), child_process, the fs module, crypto.
| API | In stylus | |
|---|---|---|
| eval() runs a string as JavaScript | Yes: 3 files e.g. bin/stylus | See the lines |
| new Function() builds a function from a string, like eval (with or without new) | Yes: 3 files e.g. lib/visitor/evaluator.js | See the lines |
| child_process starts other programs | Yes: 1 file e.g. bin/stylus | See the lines |
| process.env reads environment variables | No | Who does |
| the fs module reads and writes files | Yes: 11 files e.g. bin/stylus | 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. lib/cache/fs.js | 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 |
|---|---|
lib/parser.js | 50 KB |
lib/visitor/evaluator.js | 36 KB |
bin/stylus | 19 KB |
lib/lexer.js | 18 KB |
lib/visitor/compiler.js | 13 KB |
lib/utils.js | 12 KB |
lib/visitor/normalizer.js | 9.6 KB |
lib/middleware.js | 7.1 KB |
lib/nodes/rgba.js | 7.0 KB |
lib/convert/css.js | 6.2 KB |
lib/functions/index.styl | 5.9 KB |
lib/renderer.js | 5.7 KB |
lib/colors.js | 5.0 KB |
lib/nodes/node.js | 4.7 KB |
lib/selector-parser.js | 4.7 KB |
lib/nodes/expression.js | 4.6 KB |
lib/nodes/unit.js | 4.6 KB |
lib/nodes/hsla.js | 4.6 KB |
lib/visitor/sourcemapper.js | 4.5 KB |
lib/nodes/object.js | 4.2 KB |
lib/functions/image.js | 3.9 KB |
Readme.md | 3.7 KB |
lib/functions/url.js | 3.4 KB |
lib/visitor/deps-resolver.js | 3.3 KB |
lib/nodes/query.js | 3.1 KB |
lib/functions/json.js | 3.0 KB |
lib/functions/index.js | 2.8 KB |
lib/nodes/ident.js | 2.7 KB |
lib/nodes/string.js | 2.7 KB |
lib/nodes/atrule.js | 2.5 KB |
Version 0.64.0 of stylus publishes 143 files of source, 366 KB in all, not counting images, fonts and source maps.
Yes: stylus calls eval() in 3 of its files.
Yes: stylus uses child_process in 1 of its files.
No: stylus 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.