Beta Shell
v2.0 ยท web2.us.cloudlogin.co
[FM]
[CMD]
[PHP]
[DB]
[INFO]
[SEC]
File Manager
~
/
usr
/
local
/
nvm
/
versions
/
node
/
v18.20.8
/
lib
/
node_modules
/
npm
/
node_modules
/
unique-slug
/
lib
Upload
3 items
Name
Size
Perms
Modified
Actions
[ .. / .. ]
index.js
286 B
-rw-r--r--
2022-10-11 10:59:35
Edit
Del
Editing: index.js
(286 B)
Path: /usr/local/nvm/versions/node/v18.20.8/lib/node_modules/npm/node_modules/unique-slug/lib/index.js
Back
'use strict' var MurmurHash3 = require('imurmurhash') module.exports = function (uniq) { if (uniq) { var hash = new MurmurHash3(uniq) return ('00000000' + hash.result().toString(16)).slice(-8) } else { return (Math.random().toString(16) + '0000000').slice(2, 10) } }