Printers

colorHash.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

const

colorizeByHash

Target Style
export const colorizeByHash = (text) => {

Colors a string using a deterministic hash-derived color.

Target style API. Preferred for new code.

Parameters

  • textstring

Returns

string

Legacy Style

Legacy Style

1 exports

const

colorHash

Legacy Style
export const colorHash = (text) => colorizeByHash(text)

No description provided.

Legacy API. Kept for older code and not the preferred choice for new code.