# Nock

HTTP mocking and expectations library for Node.js that intercepts outgoing requests in tests.


Source: https://findsoftware.frbit.cloud/nock/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- repository: https://github.com/nock/nock

### Identity

- status: active
- maintainer: Pedro Teixeira
- maintainerType: unknown
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: javascript
- runtime: node
- runtimeMin: node 22
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 15
- latestReleaseDate: 2026-11-05

### Adoption

- githubStargazers: 13141
- packagistDownloads: not applicable
- npmWeeklyDownloads: 8666143
- contributors: 255
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 130286
- dependentPackages: 13189

### Sources

- urls: https://api.github.com/repos/nock/nock (read 2026-11-16)
- maintainer: https://github.com/nock/nock/blob/v15.0.6/LICENSE (read 2026-11-16)
- firstRelease: https://registry.npmjs.org/nock (read 2026-11-16)
- language: https://api.github.com/repos/nock/nock (read 2026-11-16)
- category: https://github.com/nock/nock/blob/v15.0.6/README.md (read 2026-11-16)
- runtime: https://github.com/nock/nock/blob/v15.0.6/README.md (read 2026-11-16)
- runtimeMin: https://github.com/nock/nock/blob/v15.0.6/package.json (read 2026-11-16)
- installMethod: https://github.com/nock/nock/blob/v15.0.6/README.md (read 2026-11-16)
- license: https://github.com/nock/nock/blob/v15.0.6/LICENSE (read 2026-11-16)
- licenseModel: https://github.com/nock/nock/blob/v15.0.6/LICENSE (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/nock (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nock (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nock (read 2026-11-16)
- currentMajor: https://api.github.com/repos/nock/nock/releases (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/nock/nock/releases (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/nock/nock (read 2026-11-16)
- contributors: https://api.github.com/repos/nock/nock/contributors?per_page=1 (read 2026-11-16)

## Notes

Nock mocks HTTP servers for Node.js tests and checks the requests a module makes to them. The project has no website of its own, so the [README on GitHub](https://github.com/nock/nock/blob/v15.0.6/README.md) is its documentation.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
