Package
pretender
Pretender is a mock server library for XMLHttpRequest and Fetch, that comes with an express/sinatra style syntax for defining routes and their handlers.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 300.6k
- +14% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 2
- Direct, from package.json
- Last release
- -
- v3.4.7
- GitHub stars
- 1.3k
- 154 forks
- Open issues / PRs
- 38 / 22
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
300,644 downloads last week, 1,493,152 in the last month. The 12-month change of +14% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- -
- Latest version
- 3.4.7
- First published
- -
- Last push to GitHub
- 29 Jan 2024970 days before the snapshot
- Repository archived
- No
- Open issues
- 38
- Open pull requests
- 22
- Commits, last 52 weeks
- 0
- Dependents on npm
- -
Major versions
-
Recent releases
-
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 221 kB
- Dependencies (2)
route-recognizerfake-xml-http-request
npm install pretender- jsDelivr
https://cdn.jsdelivr.net/npm/pretender@3.4.7/ - unpkg
https://unpkg.com/pretender@3.4.7/ - esm.sh
https://esm.sh/pretender@3.4.7
Indexability: Indexed.