Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TiagoDanin/Handlebars-Subresource-Integrity
Handlebars helper - Generate string with base64-encoded sha384 hash
https://github.com/TiagoDanin/Handlebars-Subresource-Integrity
handlebars handlebars-helpers handlebars-js subresource-integrity
Last synced: about 2 months ago
JSON representation
Handlebars helper - Generate string with base64-encoded sha384 hash
- Host: GitHub
- URL: https://github.com/TiagoDanin/Handlebars-Subresource-Integrity
- Owner: TiagoDanin
- License: mit
- Created: 2018-11-11T16:32:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T18:28:32.000Z (3 months ago)
- Last Synced: 2024-10-23T12:55:33.671Z (about 2 months ago)
- Topics: handlebars, handlebars-helpers, handlebars-js, subresource-integrity
- Language: JavaScript
- Homepage: https://tiagodanin.github.io/Handlebars-Subresource-Integrity/
- Size: 79.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Handlebars Subresource Integrity [![Build Status](https://travis-ci.org/TiagoDanin/Handlebars-Subresource-Integrity.png?branch=master)](https://travis-ci.org/TiagoDanin/Handlebars-Subresource-Integrity)
Handlebars helper - Generate string with base64-encoded sha384 hash
## How to Use
```
{{subresource-integrity string}}
```**Params**
- string :: StringExample:
```javascript
{{subresource-integrity "console.log('Hello World')"}}
//sha384-EXHKgzTy7fffqwkZW0ajC+yFJtjsW17H9xEq0F+iYwxPO9ec+7jQuULf75UZtXyc
```## Installation
This is a [Node.js](https://nodejs.org/) module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.```sh
npm install handlebars-subresource-integrity --save
```## Dev Dependencies
- [handlebars](https://ghub.io/handlebars): Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
- [mocha](https://ghub.io/mocha): simple, flexible, fun test framework## License
MIT