Sample JS Files
DocumentJavaScript — realistic module or script file
Download by size
Need a custom JS file?
Configure exact parameters and download on demand.
Download via curl
# Download the 1 MB JS file
curl -L "http://localhost:8000/files/js/TestFile-js-1mb.js" \
-o sample-js-1mb.js
# Generate a custom file via API
curl -X POST https://gettestfiles-api.fly.dev/generate/js \
-H "Content-Type: application/json" \
-d '{}' --output custom.js