{"library":"csp-html-linter","type":"library","category":null,"description":"A tool to lint HTML files for potential Content Security Policy (CSP) violations, targeting inline styles, inline JavaScript, style tags without nonce, and script tags without nonce. Current stable version is 1.0.13. It is designed to be used as a build step to catch violations early. Differentiators: simple CLI and programmatic API, zero dependencies, returns violations as array or detailed objects with location info. Offers a narrow but focused set of checks, suitable for integration into CI pipelines.","language":"javascript","status":"active","version":"1.0.13","tags":["javascript","lint","csp-html-linter","content security policy html linting","typescript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install csp-html-linter","imports":["const cspHtmlLinter = require('csp-html-linter');","cspHtmlLinter.parse(code, options);","csp-html-linter --include \"src/**/*.html\" --verbose"]},{"cmd":"yarn add csp-html-linter","imports":[]},{"cmd":"pnpm add csp-html-linter","imports":[]}],"homepage":null,"github":"https://github.com/mdownes/csp-html-linter","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/csp-html-linter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}