File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ ssri.checkStream(
445
445
) // -> Promise<Error<{code: 'EINTEGRITY'}>>
446
446
```
447
447
448
- #### <a name =" integrity-stream " ></a > ` > integrityStream(sri, [opts]) -> IntegrityStream `
448
+ #### <a name =" integrity-stream " ></a > ` > integrityStream([opts]) -> IntegrityStream `
449
449
450
450
Returns a ` Transform ` stream that data can be piped through in order to generate
451
451
and optionally check data integrity for piped data. When the stream completes
@@ -480,5 +480,5 @@ may intentionally deprioritize algorithms with known vulnerabilities.
480
480
``` javascript
481
481
const integrity = ssri .fromData (fs .readFileSync (' index.js' ))
482
482
fs .createReadStream (' index.js' )
483
- .pipe (ssri .checkStream ( integrity))
483
+ .pipe (ssri .integrityStream ({ integrity} ))
484
484
```
You can’t perform that action at this time.
0 commit comments