# Install http-request-mock with npm

Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level. Version 2.0.2 via npm; verified 2024-10-16.

## Install

```sh
sudo av install npm:http-request-mock
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g http-request-mock
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:http-request-mock
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/http-request-mock>
- **Version:** 2.0.2
- **Source summary:** Intercept & mock http requests issued by XMLHttpRequest, fetch, nodejs https/http module, axios, jquery, superagent, ky, node-fetch, request, got or any other request libraries by intercepting XMLHttpRequest, fetch and nodejs native requests in low level.
- **Homepage:** <https://huturen.github.io/http-request-mock-docs/>
- **Repository:** <https://github.com/huturen/http-request-mock>
- **Upstream docs:** <https://huturen.github.io/http-request-mock-docs/>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/http-request-mock/-/http-request-mock-2.0.2.tgz>
- **Issue tracker:** <https://github.com/huturen/http-request-mock/issues>
- **Published:** 2024-10-16T14:39:23.220Z
- **Last updated:** 2024-10-16T14:39:23.220Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- http-request-mock (cli)
- http-request-mock-cli (cli)
- http-request-mock (alias)

## Dependencies

- @ngneat/falso
- @types/follow-redirects
- chokidar
- commander
- follow-redirects
- http-proxy

## Build dependencies

- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/plugin-proposal-object-rest-spread
- @babel/plugin-proposal-optional-chaining
- @babel/plugin-syntax-dynamic-import
- @babel/plugin-transform-arrow-functions
- @babel/plugin-transform-async-to-generator
- @babel/plugin-transform-classes
- @babel/plugin-transform-runtime
- @babel/preset-env
- @babel/preset-typescript
- @babel/runtime
- @commitlint/cli
- @commitlint/config-conventional
- @types/node
- @types/webpack
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- axios
- babel-loader
- babel-polyfill
- copy-dir
- del-cli
- eslint
- got
- husky
- jest
- jquery
- ky
- mocha
- node-fetch
- node-loader
- standard-version
- superagent
- ts-jest
- ts-loader
- ts-node
- typescript
- webpack
- webpack-cli
- webpack-watch-files-plugin

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 2.0.2
- Package-manager updated: 2024-10-16
- Local data: ok
- Upstream repository: https://github.com/huturen/http-request-mock
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for http-request-mock. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 2.0.2
- **Version Count:** 190
- **Maintainers:** huturen
- **Author:** shuilonghu
- **Publisher:** huturen
- **Engines:** Node: ^12.18.0 || >=14.13.1
- **Integrity:** sha512-NE9hf4N7iTEeO/6+PCzdkrqf/3LXdmLz6VQsd5WVpkJtz/FIHxE3KhMWykwjy1e5tFjQWAe0hxcSMNqXMdqRkQ==
- **Shasum:** 50232b0836dfcb3f903cabec0583de51af08d511
- **Unpacked Size:** 3,882,244
- **File Count:** 0
- **Created At:** 2021-07-30T09:00:20.057Z
- **Latest Published At:** 2024-10-16T14:39:23.220Z
- **Modified At:** 2024-10-16T14:39:23.382Z


## Related links

- [Developer build packages](https://pkg.so/developer-build-tools/) - Matched curated package taxonomy and local package facts.
- [cy2](https://pkg.so/npm/cy2/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, follow, follow-redirects.
- [selenium-standalone](https://pkg.so/npm/selenium-standalone/) - Local package facts share a topical domain. Shared terms: cli, commander, developer, developer-tools, got.
- [testem](https://pkg.so/npm/testem/) - Local package facts share a topical domain. Shared terms: chokidar, cli, commander, developer, developer-tools.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
