# mock-xhr

> A mock implementation of XMLHttpRequest for unit testing

Latest version **0.1.0** (published 2014-11-12) · 0 weekly downloads

## Install

```sh
npm install mock-xhr
pnpm add mock-xhr
yarn add mock-xhr
bun add mock-xhr
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-11-12 |
| First published | 2014-11-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 63 |
| Maintainers | stephan.hoyer |
| Keywords | testing, unit, mock, ajax, http, request |

## Links

- npm: https://www.npmjs.com/package/mock-xhr
- Repository: http://github.com/philikon/MockHttpRequest
- Issues: http://github.com/philikon/MockHttpRequest/issues
- npm.io page: https://npm.io/package/mock-xhr

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-11-12

---
_Source: https://npm.io/package/mock-xhr · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
