.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / 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 };