Sample JS Files

Document

JavaScript — realistic module or script file

Download by size

SizeDownload
100KB100 KB
1MB1 MB
5MB5 MB
10MB10 MB
50MB50 MB

Need a custom JS file?

Configure exact parameters and download on demand.

⚙ Generate JS

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

Related formats