unpkg/modules/utils/getIntegrity.js

8 lines
172 B
JavaScript

const SRIToolbox = require('sri-toolbox');
function getIntegrity(data) {
return SRIToolbox.generate({ algorithms: ['sha384'] }, data);
}
module.exports = getIntegrity;