# @locker/trusted-types

> Lightning Web Security trusted types package.

Latest version **0.28.10** (published 2026-09-04) · SEE LICENSE IN LICENSE.txt license · 0 weekly downloads

## Install

```sh
npm install @locker/trusted-types
pnpm add @locker/trusted-types
yarn add @locker/trusted-types
bun add @locker/trusted-types
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.28.10 |
| Published | 2026-09-04 |
| First published | 2023-02-06 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.txt |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Salesforce UI Security Team |
| Maintainers | mjasso, caridy, jdalton, t.lau, dejang, rwaldron, garychangsf, achabot |

## Links

- npm: https://www.npmjs.com/package/@locker/trusted-types
- npm.io page: https://npm.io/package/@locker/trusted-types

## Dependencies (1)

- [@locker/shared](https://npm.io/package/@locker/shared.md) 0.28.10

## Recent versions

- 0.28.10 (latest) — 2026-09-04
- 0.27.10 — 2026-09-03
- 0.28.9 — 2026-09-01
- 0.27.9 — 2026-08-31
- 0.27.8 — 2026-08-31
- 0.28.8 — 2026-08-20
- 0.29.1 — 2026-08-20
- 0.29.0 — 2026-08-18
- 0.28.7 — 2026-08-12
- 0.28.6 — 2026-07-31
- 0.28.5 — 2026-07-23
- 0.28.4 — 2026-07-01
- 0.27.7 — 2026-06-23
- 0.28.3 — 2026-06-22
- 0.27.6 — 2026-06-18
- … 117 more at https://npm.io/package/@locker/trusted-types/versions

## README

# @locker/trusted-types

> Lightning Web Security Trusted Policy

This package is meant to be small.

Signing Example:
```js
  import { trusted } from '@locker/trusted-types'

  script.src = trusted.createScriptURL('...');
```

Create a policy using `createPolicy` utility.
`import { createPolicy } from '@locker/trusted-types'`

---
_Source: https://npm.io/package/@locker/trusted-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
