mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-01 18:26:38 +00:00
11 lines
220 B
TypeScript
11 lines
220 B
TypeScript
import { base64Decode } from "@opencode-ai/shared/util/encode"
|
|
|
|
export function decode64(value: string | undefined) {
|
|
if (value === undefined) return
|
|
try {
|
|
return base64Decode(value)
|
|
} catch {
|
|
return
|
|
}
|
|
}
|