UNPKG

@a11ywatch/core

Version:
11 lines 357 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hashString = void 0; const crypto_1 = require("crypto"); const hashString = (target) => { const hash = (0, crypto_1.createHash)("sha256"); hash.update(target + ""); return hash.digest("hex"); }; exports.hashString = hashString; //# sourceMappingURL=hash.js.map