Home / npm packages / minimatch

minimatch source code

Every file of minimatch@10.2.6 as published on npm: 29 files, 211 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env.

What minimatch uses

APIIn minimatch
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.js
See the lines
the fs module
reads and writes files
NoWho does
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
dist/commonjs/index.js45 KB
dist/esm/index.js44 KB
dist/commonjs/ast.js31 KB
dist/esm/ast.js30 KB
README.md20 KB
dist/commonjs/index.d.ts7.4 KB
dist/esm/index.d.ts7.4 KB
dist/commonjs/brace-expressions.js5.7 KB
dist/esm/brace-expressions.js5.6 KB
package.json1.8 KB
LICENSE.md1.6 KB
dist/commonjs/unescape.js1.4 KB
dist/esm/unescape.js1.3 KB
dist/commonjs/escape.js1.3 KB
dist/esm/escape.js1.1 KB
dist/commonjs/unescape.d.ts956 B
dist/esm/unescape.d.ts956 B
dist/commonjs/ast.d.ts845 B
dist/esm/ast.d.ts845 B
dist/commonjs/escape.d.ts781 B
dist/esm/escape.d.ts781 B
dist/commonjs/assert-valid-pattern.js492 B
dist/esm/assert-valid-pattern.js336 B
dist/commonjs/brace-expressions.d.ts251 B
dist/esm/brace-expressions.d.ts251 B
dist/commonjs/assert-valid-pattern.d.ts119 B
dist/esm/assert-valid-pattern.d.ts119 B
dist/commonjs/package.json25 B
dist/esm/package.json23 B

Questions

How many files are in minimatch?

Version 10.2.6 of minimatch publishes 29 files of source, 211 KB in all, not counting images, fonts and source maps.

Does minimatch use eval?

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

Does minimatch start other programs?

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

Does minimatch run an install script?

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