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

Function boolValue

projects/runtime-node/src/localFiles.ts:31–33  ·  view source on GitHub ↗
(value: unknown, fallback = false)

Source from the content-addressed store, hash-verified

29}
30
31function boolValue(value: unknown, fallback = false): boolean {
32 return typeof value === "boolean" ? value : fallback
33}
34
35function encodingValue(value: unknown): BufferEncoding {
36 return value === "base64" ? "base64" : "utf8"

Callers 7

describePathFunction · 0.85
writeFileFunction · 0.85
createDirectoryFunction · 0.85
removePathFunction · 0.85
copyPathFunction · 0.85
fuzzySearchFunction · 0.85
searchContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected