We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01125f1 commit 426df63Copy full SHA for 426df63
README.md
@@ -337,7 +337,7 @@ Adding SRI configuration to your HTML script tag ensures that the resource will
337
You can generate the SRI hash yourself based on the base64-encoded version of the sha256 hash of the release.
338
For example, after downloading version `v0.8.16+commit.07a7930e`, run:
339
```bash
340
-sha256sum --binary soljson-v0.8.16+commit.07a7930e.js | awk '{ print $1 }' | xxd -revert -plain | base64
+node -e "console.log(crypto.createHash('sha256').update(fs.readFileSync('./soljson-v0.8.16+commit.07a7930e.js', 'utf8')).digest('base64'))"
341
```
342
343
J7KCDvk4BaZcdreUWklDJYLTBv0XoomFcJpR5kA2d8I=
0 commit comments