projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
38a54b7fcab833456e1ee47eeefe6e93eaf2dda5
[dotfiles/.git]
/
hash.js
1
"use strict";
2
const murmur = require("imurmurhash");
3
4
/**
5
* hash the given string
6
* @param {string} str the string to hash
7
* @returns {string} the hash
8
*/
9
module.exports = function hash(str) {
10
return murmur(str)
11
.result()
12
.toString(36);
13
};