Home / npm packages / glob

glob source code

Every file of glob@13.0.6 as published on npm: 35 files, 375 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env, the fs module, fetch().

What glob uses

APIIn glob
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: 2 files
e.g. dist/commonjs/index.min.js
See the lines
the fs module
reads and writes files
Yes: 1 file
e.g. dist/commonjs/index.min.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
Yes: 2 files
e.g. dist/commonjs/index.min.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
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/commonjs/index.min.js88 KB
dist/esm/index.min.js83 KB
README.md44 KB
dist/commonjs/glob.d.ts15 KB
dist/esm/glob.d.ts15 KB
dist/commonjs/walker.js13 KB
dist/esm/walker.js13 KB
dist/commonjs/processor.js11 KB
dist/esm/processor.js10 KB
dist/commonjs/glob.js8.6 KB
dist/esm/glob.js8.4 KB
dist/commonjs/pattern.js7.5 KB
dist/esm/pattern.js7.3 KB
dist/commonjs/index.d.ts6.2 KB
dist/esm/index.d.ts6.2 KB
dist/commonjs/ignore.js4.3 KB
dist/esm/ignore.js4.1 KB
dist/commonjs/walker.d.ts3.8 KB
dist/esm/walker.d.ts3.8 KB
dist/commonjs/index.js2.9 KB
package.json2.6 KB
dist/commonjs/pattern.d.ts2.2 KB
dist/esm/pattern.d.ts2.2 KB
dist/commonjs/processor.d.ts2.1 KB
dist/esm/processor.d.ts2.1 KB
LICENSE.md1.8 KB
dist/esm/index.js1.6 KB
dist/commonjs/has-magic.js1.1 KB
dist/esm/has-magic.js917 B
dist/commonjs/ignore.d.ts813 B

Questions

How many files are in glob?

Version 13.0.6 of glob publishes 35 files of source, 375 KB in all, not counting images, fonts and source maps.

Does glob use eval?

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

Does glob start other programs?

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

Does glob run an install script?

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