Rename server => modules
This commit is contained in:
7
modules/utils/getIntegrity.js
Normal file
7
modules/utils/getIntegrity.js
Normal file
@ -0,0 +1,7 @@
|
||||
const SRIToolbox = require("sri-toolbox");
|
||||
|
||||
function getIntegrity(data) {
|
||||
return SRIToolbox.generate({ algorithms: ["sha384"] }, data);
|
||||
}
|
||||
|
||||
module.exports = getIntegrity;
|
Reference in New Issue
Block a user