Home / npm packages / proxyquire

proxyquire source code

Every file of proxyquire@2.1.3 as published on npm: 62 files, 67 KB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), the fs module, fetch(), crypto.

What proxyquire uses

APIIn proxyquire
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 1 file
e.g. lib/proxyquire.js
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: 6 files
e.g. README.md
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. README.md
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 1 file
e.g. test/samples/foo.js
See the lines
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
README.md16 KB
lib/proxyquire.js11 KB
test/proxyquire.js5.9 KB
test/proxyquire-cache.js4.0 KB
test/proxyquire-non-object.js3.4 KB
examples/api/api-test.js3.2 KB
examples/sinon/foo-tests.js2.7 KB
test/proxyquire-global.js1.9 KB
test/proxyquire-argumentvalidation.js1.9 KB
test/proxyquire-notexisting.js1.7 KB
test/proxyquire-independence.js1.2 KB
examples/async/foo-tests.js1.2 KB
LICENSE1.1 KB
test/proxyquire-api.js1.0 KB
test/samples/foo.js905 B
package.json847 B
examples/simple/foo.test.js824 B
examples/simple/foo.inlineoverride.test.js811 B
test/proxyquire-extensions.js753 B
test/proxyquire-remove.js715 B
test/proxyquire-sub-dependencies.js685 B
examples/api/samples/foo.js515 B
index.js471 B
examples/sinon/foo.js376 B
test/proxyquire-relative-paths.js376 B
lib/is.js338 B
examples/example-utils.js335 B
lib/proxyquire-error.js294 B
test/proxyquire-compat.js280 B
examples/async/foo.js254 B

Questions

How many files are in proxyquire?

Version 2.1.3 of proxyquire publishes 62 files of source, 67 KB in all, not counting images, fonts and source maps.

Does proxyquire use eval?

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

Does proxyquire start other programs?

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

Does proxyquire run an install script?

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