ng-api-response-time
v1.0.6
Published
**ng-api-response-time** is a lightweight Angular HTTP interceptor that logs the response time of all outgoing HTTP requests made with Angular's `HttpClient`. Ideal for performance monitoring, diagnostics, and debugging.
Readme
ng-api-response-time
ng-api-response-time is a lightweight Angular HTTP interceptor that logs the response time of all outgoing HTTP requests made with Angular's HttpClient. Ideal for performance monitoring, diagnostics, and debugging.
🚀 Features
- 📡 Tracks all HTTP requests made with
HttpClient - ⏱️ Logs response time in milliseconds
- 🧩 Plug-and-play interceptor
- 🔧 Easily customizable for advanced use cases
- 📉 Useful for local dev and performance audits
📦 Installation & Usage
Install the library using npm or yarn:
npm install ng-api-response-time
# or
yarn add ng-api-response-time
---
Usage
import { HttpApiResponseModule } from "ng-api-response-time";
HttpApiResponseModule.forRoot({
storageKey: STORAGE_KEY,
serviceId: SERVICE_ID,
filterWith: 'your-api-filter',
maxLogs: 100,
enabled: true
});
