MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / hash

Function hash

scripts/i18n-manager.mjs:29–31  ·  view source on GitHub ↗

Hashes a string using SHA1.

(str)

Source from the content-addressed store, hash-verified

27
28/** Hashes a string using SHA1. */
29function hash(str) {
30 return crypto.createHash('sha1').update(str, 'utf8').digest('hex');
31}
32
33/** Dynamically imports a .ts file by converting it to a temporary .mjs file. */
34async function loadLocaleModule(locale) {

Callers 1

syncFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected