{"library":"tsec","type":"library","category":null,"description":"tsec is a static analysis tool built on the TypeScript compiler that validates code against Trusted Types compliance. At version 0.2.9, it provides extended compiler checks to enforce Trusted Types, a browser security primitive that mitigates DOM XSS attacks. Unlike runtime polyfills, tsec catches violations at compile time, integrating into the build pipeline without runtime overhead. It requires Bazel build system (with @bazel/bazelisk and @bazel/concatjs) and TypeScript >=3.9.2. Its key differentiator is compile-time enforcement, making it suitable for large codebases where runtime approaches are insufficient.","language":"javascript","status":"active","version":"0.2.9","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install tsec","imports":["import tsec from 'tsec'","import { TSECConfig } from 'tsec'","import { runTsec } from 'tsec'"]},{"cmd":"yarn add tsec","imports":[]},{"cmd":"pnpm add tsec","imports":[]}],"homepage":null,"github":"https://github.com/google/tsec","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tsec","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}