Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zkochan/ssri-check-file
Verifies files using subresource integrity hashes
https://github.com/zkochan/ssri-check-file
Last synced: 10 days ago
JSON representation
Verifies files using subresource integrity hashes
- Host: GitHub
- URL: https://github.com/zkochan/ssri-check-file
- Owner: zkochan
- License: mit
- Created: 2017-11-09T17:20:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T15:30:28.000Z (about 7 years ago)
- Last Synced: 2024-10-26T17:22:05.186Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ssri-check-file
> Verifies files using subresource integrity hashes
[![npm version](https://img.shields.io/npm/v/ssri-check-file.svg)](https://www.npmjs.com/package/ssri-check-file) [![Build Status](https://img.shields.io/travis/zkochan/ssri-check-file/master.svg)](https://travis-ci.org/zkochan/ssri-check-file)
## Install
npm install ssri-check-file
## Usage
```js
'use strict'
const ssriCheckFile = require('ssri-check-file')ssriCheckFile('.editorconfig', 'sha512-3Araasa9Jnn6DwVZpe7nvi3IgopUNXzy5OyL3D2Dta1cbCnaC3WOCn7H/IZNpKPMus8kOSwC5msrqNBeE7+dSQ==')
.then(verified => {
if (verified) {
console.log('Integrity verified!')
//> Integrity verified!
} else {
console.error('Integrity not verified')
}
})
.catch(err => console.error(err))
```## License
[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)