# sri

> Subresource Integrity hash generator

Latest version **1.1.0** (published 2015-09-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install sri
pnpm add sri
yarn add sri
bun add sri
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2015-09-26 |
| First published | 2015-09-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Roman Liutikov |
| Maintainers | roman01la |
| Keywords | sri |

## Links

- npm: https://www.npmjs.com/package/sri
- npm.io page: https://npm.io/package/sri

## Recent versions

- 1.1.0 (latest) — 2015-09-26
- 1.0.0 — 2015-09-26

## README

# sri

Subresource Integrity hash generator

[What's Subresource Integrity?](http://www.w3.org/TR/SRI/)

## Installation

```
$ npm i sri
```

## Usage

```javascript
const sri = require('sri');

const sriString = sri.getSRIString('file.js'); // sha384-J5Dqvq3...
```

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