Home / npm packages / prop-types

prop-types source code

Every file of prop-types@15.8.1 as published on npm: 12 files, 95 KB. Search them by exact text or regex, in milliseconds.

It uses: process.env.

What prop-types uses

APIIn prop-types
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: 4 files
e.g. checkPropTypes.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
prop-types.js48 KB
factoryWithTypeCheckers.js23 KB
README.md12 KB
checkPropTypes.js3.9 KB
prop-types.min.js1.7 KB
package.json1.7 KB
factoryWithThrowingShims.js1.6 KB
LICENSE1.1 KB
factory.js768 B
index.js710 B
lib/ReactPropTypesSecret.js314 B
lib/has.js70 B

Questions

How many files are in prop-types?

Version 15.8.1 of prop-types publishes 12 files of source, 95 KB in all, not counting images, fonts and source maps.

Does prop-types use eval?

No: prop-types doesn't call eval() anywhere in its published files.

Does prop-types start other programs?

No: prop-types doesn't use child_process anywhere in its published files.

Does prop-types run an install script?

No: prop-types 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