UNPKG

node-request-interceptor

Version:

Low-level HTTP/HTTPS/XHR request interception library for NodeJS

6 lines (5 loc) 177 B
/** * Parses a given string into JSON. * Gracefully handles invalid JSON by returning `null`. */ export declare function parseJson(data: string): Record<string, any> | null;