```js // @noErrors import { integrity } from '$app/integrity'; ``` ## integrity
Available since 2.54.0
Look up the SRI integrity hash for a Vite-processed asset URL. Returns the integrity string (e.g. `"sha384-..."`) during SSR when [`subresourceIntegrity`](/docs/kit/configuration#subresourceIntegrity) is enabled, or `undefined` on the client and in dev. ```svelte ```
```dts function integrity(url: string): string | undefined; ```