Home / npm packages / react-router

react-router source code

Every file of react-router@8.4.0 as published on npm: 336 files, 2.9 MB. Search them by exact text or regex, in milliseconds.

It uses: process.env, fetch(), crypto.

What react-router uses

APIIn react-router
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: 7 files
e.g. dist/development/lib/server-runtime/dev.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
Yes: 29 files
e.g. dist/development/lib/components.js
See the lines
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
Yes: 6 files
e.g. dist/development/lib/server-runtime/crypto.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
CHANGELOG.md154 KB
dist/development/index-react-server.js132 KB
dist/production/index-react-server.js131 KB
dist/development/lib/router/router.js123 KB
dist/production/lib/router/router.js123 KB
dist/development/index-react-server.d.ts100 KB
dist/production/index-react-server.d.ts100 KB
dist/development/lib/dom/lib.d.ts73 KB
dist/production/lib/dom/lib.d.ts73 KB
dist/development/lib/hooks.js52 KB
dist/production/lib/hooks.js50 KB
dist/development/lib/dom/lib.js49 KB
dist/production/lib/dom/lib.js49 KB
dist/development/lib/router/utils.d.ts38 KB
dist/production/lib/router/utils.d.ts38 KB
dist/development/lib/components.d.ts35 KB
dist/production/lib/components.d.ts35 KB
dist/development/lib/router/utils.js35 KB
dist/production/lib/router/utils.js34 KB
dist/development/lib/hooks.d.ts33 KB
dist/production/lib/hooks.d.ts33 KB
dist/development/lib/components.js32 KB
dist/production/lib/components.js32 KB
docs/how-to/react-server-components.md32 KB
dist/development/lib/rsc/browser.js24 KB
dist/production/lib/rsc/browser.js24 KB
docs/how-to/middleware.md23 KB
dist/development/lib/dom/ssr/components.js22 KB
dist/production/lib/dom/ssr/components.js22 KB
dist/development/lib/router/router.d.ts21 KB

Questions

How many files are in react-router?

Version 8.4.0 of react-router publishes 336 files of source, 2.9 MB in all, not counting images, fonts and source maps.

Does react-router use eval?

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

Does react-router start other programs?

No: react-router doesn't use child_process anywhere in its published files.

Does react-router run an install script?

No: react-router 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