Lines Matching refs:sri
51 ssri.fromStream(fs.createReadStream('./my-file')).then(sri => {
52 sri.toString() === integrity
54 fs.createReadStream('./my-file').pipe(ssri.createCheckerStream(sri))
83 #### <a name="parse"></a> `> ssri.parse(sri, [opts]) -> Integrity`
85 Parses `sri` into an `Integrity` data structure. `sri` can be an integrity
118 #### <a name="stringify"></a> `> ssri.stringify(sri, [opts]) -> String`
222 #### <a name="integrity-match"></a> `> Integrity#match(sri, [opts]) -> Hash | false`
225 `sri`, which can be anything that [`parse`](#parse) will accept. `opts` will be
379 #### <a name="check-data"></a> `> ssri.checkData(data, sri, [opts]) -> Hash|false`
381 Verifies `data` integrity against an `sri` argument. `data` may be either a
382 `String` or a `Buffer`, and `sri` can be any subresource integrity
405 #### <a name="check-stream"></a> `> ssri.checkStream(stream, sri, [opts]) -> Promise<Hash>` argument
407 Verifies the contents of `stream` against an `sri` argument. `stream` will be
408 consumed in its entirety by this process. `sri` can be any subresource integrity