Skip to content

Eleventy Utils v2.0.6

Choose a tag to compare

@zachleat zachleat released this 08 May 17:44
· 101 commits to main since this release
  • Adds createHashSync and createHashHexSync functions (identical use to async functions createHash and createHashHex respectively). These functions automatically swap between node:crypto, the web standard WebCrypto API, and an inline script option in all other environments.
  • Adds Node v24 to CI test suite
import { createHashSync, createHashHexSync } from "@11ty/eleventy-utils";

const base64UrlHash = createHashSync("This", "is", "an", "arbitrary", "string.");
const hexHash = createHashHexSync("This", "is", "an", "arbitrary", "string.");