first commit
This commit is contained in:
10
node_modules/stylelint/lib/utils/hash.mjs
generated
vendored
Normal file
10
node_modules/stylelint/lib/utils/hash.mjs
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user