UNPKG

@mdworld/ingress-headers

Version:

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

10 lines 434 B
#!/usr/bin/env node import { CSPDirectives } from "./read_headers.js"; /** * Updates a YAML file with new Content Security Policy directives * @param yamlFilePath - Path to the YAML file to update * @param cspData - CSP directives object * @returns Promise resolving to success message */ export declare function writeCSP(yamlFilePath: string, cspData: CSPDirectives): Promise<string>; //# sourceMappingURL=write_headers.d.ts.map