PHP 7.4.33
Preview: index.js Size: 408 B
/var/www/cookieconsent.bitkit.dk/httpdocs/node_modules/string-hash/index.js
"use strict";

function hash(str) {
  var hash = 5381,
      i    = str.length;

  while(i) {
    hash = (hash * 33) ^ str.charCodeAt(--i);
  }

  /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
   * integers. Since we want the results to be always positive, convert the
   * signed int to an unsigned by doing an unsigned bitshift. */
  return hash >>> 0;
}

module.exports = hash;

Directory Contents

Dirs: 0 × Files: 6
Name Size Perms Modified Actions
14 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
344 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
408 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
494 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
841 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
376 B lrw-r--r-- 2025-06-16 05:45:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).