Handlebars helper - Generate string with base64-encoded sha384 hash by Tiago Danin.
Handlebars helper - Generate string with base64-encoded sha384 hash
{{subresource-integrity string}}
Params
Example:
{{subresource-integrity "console.log('Hello World')"}}
//sha384-EXHKgzTy7fffqwkZW0ajC+yFJtjsW17H9xEq0F+iYwxPO9ec+7jQuULf75UZtXyc
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install handlebars-subresource-integrity --save
MIT
JavaScript
2