TiagoDanin / Handlebars-Subresource-Integrity

Handlebars helper - Generate string with base64-encoded sha384 hash

Home Page:https://tiagodanin.github.io/Handlebars-Subresource-Integrity/

Repository from Github https://github.comTiagoDanin/Handlebars-Subresource-IntegrityRepository from Github https://github.comTiagoDanin/Handlebars-Subresource-Integrity

Handlebars Subresource Integrity Build Status

Handlebars helper - Generate string with base64-encoded sha384 hash

How to Use

{{subresource-integrity string}}

Params

  • string :: String

Example:

{{subresource-integrity "console.log('Hello World')"}}
//sha384-EXHKgzTy7fffqwkZW0ajC+yFJtjsW17H9xEq0F+iYwxPO9ec+7jQuULf75UZtXyc

Installation

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

Dev Dependencies

  • handlebars: Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
  • mocha: simple, flexible, fun test framework

License

MIT

About

Handlebars helper - Generate string with base64-encoded sha384 hash

https://tiagodanin.github.io/Handlebars-Subresource-Integrity/

License:MIT License


Languages

Language:JavaScript 100.0%