









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.import { createHashSync, createHashHexSync } from "@11ty/eleventy-utils"; const base64UrlHash = createHashSync("This", "is", "an", "arbitrary", "string."); const hexHash = createHashHexSync("This", "is", "an", "arbitrary", "string.");
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。