Sign in
chromium
/
devtools
/
devtools-frontend
/
main
/
.
/
node_modules
/
stylelint
/
lib
/
utils
/
hash.mjs
blob: 29403d87244269ee72cc1d43cf40f8a66e4802ab [
file
] [
log
] [
blame
]
import
MurmurHash3
from
'imurmurhash'
;
/**
* hash the given string
* @param {string} str the string to hash
* @returns {string} the hash
*/
export
default
function
hash
(
str
)
{
return
MurmurHash3
(
str
).
result
().
toString
(
36
);
}