Home / npm packages / vue-router

vue-router source code

Every file of vue-router@5.3.1 as published on npm: 70 files, 1.2 MB. Search them by exact text or regex, in milliseconds.

It uses: process.env, the fs module.

What vue-router uses

APIIn vue-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: 17 files
e.g. index.cjs
See the lines
the fs module
reads and writes files
Yes: 2 files
e.g. dist/unplugin-BhyFeXjp.cjs
See the lines
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/index-D7ja2BKs.d.ts124 KB
dist/vue-router.cjs114 KB
dist/vue-router.esm-browser.js111 KB
dist/vue-router.global.js109 KB
dist/unplugin-BhyFeXjp.cjs106 KB
dist/unplugin-C2XPnbvD.mjs103 KB
dist/options-CwYZKRl4.d.cts101 KB
dist/options-CwYZKRl4.d.mts101 KB
dist/vue-router.js58 KB
dist/vue-router.prod.cjs53 KB
dist/experimental/index.js41 KB
dist/devtools-CN5uWJaH.js37 KB
dist/vue-router.global.prod.js26 KB
dist/vue-router.esm-browser.prod.js25 KB
dist/useApi-BPuI6ZR9.js22 KB
dist/options-DAV_IDdB.cjs21 KB
dist/options-Bvk6mX13.mjs19 KB
dist/navigation-guard-Csroba8S.js10 KB
dist/experimental/pinia-colada.js8.5 KB
dist/experimental/pinia-colada.d.ts7.3 KB
dist/vue-router.d.ts6.2 KB
package.json6.1 KB
README.md5.2 KB
dist/experimental/index.d.ts4.5 KB
dist/volar/sfc-typed-router.cjs4.0 KB
dist/unplugin/index.d.cts2.9 KB
dist/unplugin/index.d.mts2.9 KB
vetur/attributes.json1.8 KB
vue-router-auto-routes.d.mts1.7 KB
dist/volar/sfc-route-blocks.cjs1.6 KB

Questions

How many files are in vue-router?

Version 5.3.1 of vue-router publishes 70 files of source, 1.2 MB in all, not counting images, fonts and source maps.

Does vue-router use eval?

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

Does vue-router start other programs?

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

Does vue-router run an install script?

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