MCPcopy
hub / github.com/zws-im/zws / encode

Function encode

src/server/components/urls/service.ts:39–41  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

37const maxGenerationAttempts = 10;
38
39function encode(value: string): Base64 {
40 return Buffer.from(value).toString('base64') as Base64;
41}
42
43export function normalizeShortId(id: Short): Short {
44 return multiReplace(id, config.characters.rewrites) as Short;

Callers 3

visitFunction · 0.85
statsFunction · 0.85
shortenFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected