Home / npm packages / node-sass

node-sass source code

Every file of node-sass@9.0.0 as published on npm: 332 files, 1.8 MB. Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function(), process.env, the fs module, fetch(), install scripts.

What node-sass uses

APIIn node-sass
eval()
runs a string as JavaScript
Yes: 4 files
e.g. src/libsass/src/ast.cpp
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 1 file
e.g. src/libsass/src/ast.hpp
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
Yes: 12 files
e.g. test/api.js
See the lines
the fs module
reads and writes files
Yes: 7 files
e.g. bin/node-sass
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 1 file
e.g. scripts/install.js
See the lines
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
Yes: 1 file
e.g. package.json
See the lines

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

Largest files

FileSize
src/libsass/src/parser.cpp109 KB
src/libsass/src/ast.hpp102 KB
src/libsass/src/functions.cpp81 KB
src/libsass/src/extend.cpp78 KB
src/libsass/src/ast.cpp72 KB
test/api.js67 KB
src/libsass/src/eval.cpp59 KB
src/libsass/src/prelexer.cpp49 KB
src/libsass/src/debugger.hpp41 KB
src/libsass/src/context.cpp33 KB
src/libsass/src/color_maps.cpp33 KB
src/libsass/src/json.cpp32 KB
src/libsass/src/inspect.cpp31 KB
src/libsass/src/sass_context.cpp30 KB
src/libsass/src/expand.cpp27 KB
README.md26 KB
test/cli.js26 KB
src/libsass/src/sass2scss.cpp24 KB
test/types.js22 KB
src/libsass/src/util.cpp20 KB
src/libsass/script/tap-driver20 KB
src/libsass/src/cssize.cpp19 KB
test/watcher.js18 KB
src/libsass/src/file.cpp18 KB
src/libsass/src/prelexer.hpp16 KB
src/libsass/src/units.cpp16 KB
src/libsass/src/ast_fwd_decl.hpp15 KB
src/libsass/src/sass_values.cpp15 KB
src/libsass/src/parser.hpp15 KB
src/binding.cpp13 KB

Questions

How many files are in node-sass?

Version 9.0.0 of node-sass publishes 332 files of source, 1.8 MB in all, not counting images, fonts and source maps.

Does node-sass use eval?

Yes: node-sass calls eval() in 4 of its files.

Does node-sass start other programs?

No: node-sass doesn't use child_process anywhere in its published files.

Does node-sass run an install script?

Yes: node-sass has an install script in its package.json, so it runs code when it's installed.

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