httpception
JSON →Version 4.0.1. A lightweight HTTP mocking library for Node.js that intercepts HTTP traffic during tests. It automatically restores the http module after each test (via a registered afterEach block) and fails if any mocks were not exercised. Supports both simple inline mocking and a callback-based approach for scoping. Differentiates from alternatives like nock by its automatic cleanup and integration with test frameworks.
Traffic · last 30 days ↓50% vs prev 7d
total hits 14
actors 5 distinct systems
last hit 1d ago AhrefsBot
top countries 🇺🇸 United States · 🇫🇷 France · 🇨🇦 Canada · 🇩🇪 Germany
API endpoints
full doc /v1/registry/httpception
install /v1/registry/httpception/install
compatibility /v1/registry/httpception/compatibility