@edirect/audit-exporter-http-fetch
v11.0.43
Published
HTTP exporter for Edirect Audit events using the Fetch API. This module allows you to send audit logs to remote endpoints via HTTP POST requests, using the native Fetch API for lightweight and modern transport.
Downloads
853
Maintainers
Keywords
Readme
@edirect/audit-exporter-http-fetch
HTTP exporter for Edirect Audit events using the Fetch API. This module allows you to send audit logs to remote endpoints via HTTP POST requests, using the native Fetch API for lightweight and modern transport.
Features
- Sends audit events to remote HTTP endpoints
- Uses Fetch API for HTTP requests (native, lightweight)
- Integrates with @edirect/audit-core and other audit modules
Installation
npm install @edirect/audit-exporter-http-fetchUsage
Import and configure the exporter in your audit pipeline:
import { AuditHttpFetchExporter } from '@edirect/audit-exporter-http-fetch';
const exporter = new AuditHttpFetchExporter({
endpoint: 'https://audit.example.com/events',
apiKey: process.env.AUDIT_API_KEY,
});
exporter.export(event);