MCPcopy Create free account
hub / github.com/cloudflare/agents / encodeText

Function encodeText

packages/shell/src/helpers.ts:25–27  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

23const MAX_DIFF_LINES = 10_000;
24
25export function encodeText(value: string): Uint8Array {
26 return textEncoder.encode(value);
27}
28
29export function decodeText(value: Uint8Array): string {
30 return textDecoder.decode(value);

Callers 1

writeAsciiFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected