node-lens
Version:
Lens is a lightweight developer tool for Node.js apps that lets you log, view, and debug requests and other activity in real time — inspired by Laravel Telescope.
17 lines (11 loc) • 371 B
TypeScript
import express from 'express';
type LensOptions = {
path?: string;
};
declare function getRequestId(): string | undefined;
type ProxyOptions = {
methods: string[];
};
declare function createProxy<T extends object>(client: T, options: ProxyOptions): T;
declare function lens(options?: LensOptions): express.Router;
export { createProxy, getRequestId, lens };