PHP 8.2.30
Preview: index.js Size: 286 B
/proc/thread-self/root/opt/alt/alt-nodejs18/root/lib/node_modules/npm/node_modules/unique-slug/lib/index.js

'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)
  }
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
286 B lrw-r--r-- 2026-03-09 09:08:37
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).