Home / npm packages / less

less source code

Every file of less@4.9.1 as published on npm: 123 files, 2.5 MB. Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function(), the fs module, XMLHttpRequest.

What less uses

APIIn less
eval()
runs a string as JavaScript
Yes: 43 files
e.g. dist/less-node.cjs
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 7 files
e.g. dist/less-node.cjs
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 3 files
e.g. dist/less-node.cjs
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
Yes: 4 files
e.g. dist/less.cjs
See the lines
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
dist/less.cjs590 KB
dist/less.js590 KB
dist/less-node.cjs522 KB
dist/less.min.js159 KB
lib/less/parser/parser.js122 KB
lib/less/tree/ruleset.js42 KB
lib/less/visitors/extend-visitor.js22 KB
bin/lessc18 KB
lib/less/parser/parser-input.js13 KB
lib/less/functions/color.js13 KB
lib/less/tree/atrule.js13 KB
lib/less/tree/mixin-definition.js12 KB
lib/less/tree/mixin-call.js12 KB
lib/less/tree/import.js12 KB
lib/less/visitors/to-css-visitor.js11 KB
lib/less-browser/index.js9.8 KB
lib/less/tree/nested-at-rule.js9.5 KB
lib/less/import-manager.js8.8 KB
lib/less/tree/color.js8.6 KB
lib/less/tree/node.js8.3 KB
lib/less/tree/dimension.js7.1 KB
lib/less/visitors/import-visitor.js6.9 KB
lib/less-node/lessc-helper.js6.9 KB
lib/less/tree/selector.js6.9 KB
lib/less/parse-tree.js6.4 KB
lib/less-node/file-manager.js6.2 KB
lib/less/source-map-output.js6.0 KB
lib/less-browser/error-reporting.js5.9 KB
lib/less/environment/abstract-plugin-loader.js5.8 KB
lib/less/contexts.js5.6 KB

Questions

How many files are in less?

Version 4.9.1 of less publishes 123 files of source, 2.5 MB in all, not counting images, fonts and source maps.

Does less use eval?

Yes: less calls eval() in 43 of its files.

Does less start other programs?

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

Does less run an install script?

No: less 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