Home / npm packages / globalthis

globalthis source code

Every file of globalthis@1.0.4 as published on npm: 17 files, 24 KB. Search them by exact text or regex, in milliseconds.

It uses: eval(), new Function().

What globalthis uses

APIIn globalthis
eval()
runs a string as JavaScript
Yes: 1 file
e.g. test/tests.js
See the lines
new Function()
builds a function from a string, like eval (with or without new)
Yes: 2 files
e.g. implementation.browser.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
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
CHANGELOG.md12 KB
README.md2.7 KB
package.json2.5 KB
test/tests.js1.4 KB
LICENSE1.1 KB
test/shimmed.js900 B
test/native.js767 B
shim.js715 B
index.js408 B
implementation.browser.js254 B
polyfill.js251 B
test/implementation.js213 B
test/index.js196 B
.eslintrc192 B
.nycrc149 B
implementation.js40 B
auto.js36 B

Questions

How many files are in globalthis?

Version 1.0.4 of globalthis publishes 17 files of source, 24 KB in all, not counting images, fonts and source maps.

Does globalthis use eval?

Yes: globalthis calls eval() in 1 of its files.

Does globalthis start other programs?

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

Does globalthis run an install script?

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