MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / serializeForInlineScript

Function serializeForInlineScript

public/ts/utils/misc.ts:55–57  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

53}
54
55export function serializeForInlineScript(value: unknown): string {
56 return JSON.stringify(value).replace(/</g, '\\u003c');
57}
58
59export function generateRandomCode(length = 6) {
60 const getRandomDigit = () => Math.floor(Math.random() * (10)); // 0-9

Callers 3

misc_test.tsFile · 0.90
defaultHtmlContentFunction · 0.90
defaultHtmlContentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected