unpkg/modules/utils/getIntegrity.js

6 lines
150 B
JavaScript

import SRIToolbox from 'sri-toolbox';
export default function getIntegrity(data) {
return SRIToolbox.generate({ algorithms: ['sha384'] }, data);
}