UNPKG

@mdworld/ingress-headers

Version:

A TypeScript utility for extracting and managing Content Security Policy (CSP) headers from Kubernetes ingress YAML files

11 lines 429 B
#!/usr/bin/env node export interface CSPDirectives { [directiveName: string]: string[]; } /** * Reads a YAML file and extracts the Content Security Policy, returning it as a structured JSON object * @param yamlFilePath - Path to the YAML file containing the CSP * @returns CSP directives organized by type */ export declare function readCSP(yamlFilePath: string): CSPDirectives; //# sourceMappingURL=read_headers.d.ts.map