{"library":"content-security-policy-builder","type":"library","category":null,"description":"The `content-security-policy-builder` package, currently at version 2.3.0, provides a focused utility for programmatically constructing Content Security Policy (CSP) strings from a JavaScript object or Map. It streamlines the process of defining CSP directives by supporting various input formats, including `camelCased` or `dash-separated` directive names, and accepting both strings and arrays for directive values. The module is explicitly designated as feature-complete, with the maintainer indicating that future development will be limited to maintenance. This means no new features or breaking changes are planned, making it a stable, though static, choice for generating CSP headers. Its key differentiator lies in its robust input parsing and its singular, complete focus on translating structured input into a valid CSP string.","language":"javascript","status":"maintenance","version":"2.3.0","tags":["javascript","security","content","policy","csp","builder","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install content-security-policy-builder","imports":["import builder from 'content-security-policy-builder';","import builder from 'content-security-policy-builder';","import type { CSPDirectiveMap } from 'content-security-policy-builder';"]},{"cmd":"yarn add content-security-policy-builder","imports":[]},{"cmd":"pnpm add content-security-policy-builder","imports":[]}],"homepage":null,"github":"https://github.com/helmetjs/content-security-policy-builder","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/content-security-policy-builder","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/content-security-policy-builder/compatibility"}}