Download lib/utils/debug-info.ts from ASEM12345/rsshub: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/ASEM12345/rsshub/resolve/main/lib/utils/debug-info.ts
- Command line
-
hf download hf://spaces/ASEM12345/rsshub/lib/utils/debug-info.ts
-
curl -L -o debug-info.ts https://huggingface.co/spaces/ASEM12345/rsshub/resolve/main/lib/utils/debug-info.ts
539 Bytes
| type DebugInfo = { | |
| hitCache: number; | |
| request: number; | |
| etag: number; | |
| error: number; | |
| paths: Record<string, number>; | |
| routes: Record<string, number>; | |
| errorPaths: Record<string, number>; | |
| errorRoutes: Record<string, number>; | |
| }; | |
| const debug: DebugInfo = { | |
| hitCache: 0, | |
| request: 0, | |
| etag: 0, | |
| error: 0, | |
| routes: {}, | |
| paths: {}, | |
| errorRoutes: {}, | |
| errorPaths: {}, | |
| }; | |
| export const getDebugInfo = () => debug; | |
| export const setDebugInfo = (info: typeof debug) => Object.assign(debug, info); | |