FindSoftware

Nock

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

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 is its documentation.

Identity

Status
Active
Maintainer
Pedro Teixeira2
First release
20113

Rendering and deploy

Install with
npm4

Releases

Current major version
158
Last release
2026-11-058

Adoption

GitHub stars
13,1411
npm downloads a week
8,666,1436
Contributors
2559
Dependent repositories
130,2867
Dependent packages
13,1897

Why these figures do not compare

Sources

  1. 2026-11-16: links, Written in, GitHub stars
    api.github.com/repos/nock/nock
  2. 2026-11-16: Maintainer, License, License model
    github.com/nock/nock/blob/v15.0.6/LICENSE
  3. 2026-11-16: First release
    registry.npmjs.org/nock
  4. 2026-11-16: Categories, Runtime, Install with
    github.com/nock/nock/blob/v15.0.6/README.md
  5. 2026-11-16: Minimum runtime
    github.com/nock/nock/blob/v15.0.6/package.json
  6. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/nock
  7. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/nock
  8. 2026-11-16: Current major version, Last release
    api.github.com/repos/nock/nock/releases
  9. 2026-11-16: Contributors
    api.github.com/repos/nock/nock/contributors?per_page=1

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON