Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more
Module

x/goober/src/core/to-hash.js>toHash

πŸ₯œ goober, a less than 1KB πŸŽ‰ css-in-js alternative with a familiar API
Latest
variable toHash
import { toHash } from "https://deno.land/x/goober@v2.1.16/src/core/to-hash.js";

Transforms the input into a className. The multiplication constant 101 is selected to be a prime, as is the initial value of 11. The intermediate and final results are truncated into 32-bit unsigned integers.

type

(str) => unknown