MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / encodingValue

Function encodingValue

projects/runtime-node/src/localFiles.ts:35–37  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

33}
34
35function encodingValue(value: unknown): BufferEncoding {
36 return value === "base64" ? "base64" : "utf8"
37}
38
39function positiveInt(value: unknown, fallback: number): number {
40 return typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.floor(value) : fallback

Callers 2

readFileFunction · 0.85
writeFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected