# sri-create

> create sri from local file or remote file

Latest version **0.0.3** (published 2018-05-08) · ISC license · 0 weekly downloads

## Install

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

Provides the command `create-sri`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-05-08 |
| First published | 2018-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Youjingyu |
| Maintainers | whale-you |
| Keywords | create sri, local file, remote file |

## Links

- npm: https://www.npmjs.com/package/sri-create
- Repository: https://github.com/Youjingyu/sri-create
- Homepage: https://github.com/Youjingyu/sri-create#readme
- Issues: https://github.com/Youjingyu/sri-create/issues
- npm.io page: https://npm.io/package/sri-create

## Dependencies (2)

- [sri](https://npm.io/package/sri.md) ^1.1.0
- [request](https://npm.io/package/request.md) ^2.85.0

## Recent versions

- 0.0.3 (latest) — 2018-05-08
- 0.0.2 — 2018-05-08
- 0.0.1 — 2018-05-08

## README

# sri-create
create sri from local file or remote file
## usage
#### use in terminal
```bash
npm i sri-create -g
create-sri <file-url|file-path>
## for example
create-sri https://raw.githubusercontent.com/Youjingyu/sri-create/master/index.js
## output: sha384-ZUyT6D39ELzG6ROLqGHl2YFZux5Itck7tyrrXZIPpIlnI6z2Npm6QYe14vMKXFdJ

## or
create-sri /utils/index.js
```
#### use in script
```bash
npm i sri-create --save
```
```javascript
const createSri = require('sri-create')
createSri('https://github.com/Youjingyu/sri-create/blob/master/index.js').then((res) => {
  console.log(res)
}).catch((err) => {
  console.log(err)
})
```

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