@fishballpkg/linkz@0.9.0Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
fishballapp/linkz
export const render = ( html: string, variables: Record<string, string>, ): string => { return html.replace( /{{\s*(\w+)\s*}}/g, (_, key) => { const value = variables[key]; if (typeof value === "undefined") { console.warn( `%cRender Warning:%c Cannot find %c${key}%c. Will use empty string instead`, "color: yellow;", "", "color: cyan;", "", ); } return value ?? ""; }, ); };