mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-10 20:40:36 +00:00
10 lines
213 B
TypeScript
10 lines
213 B
TypeScript
import { base64Decode } from "@opencode-ai/util/encode"
|
|
|
|
export function decode64(value: string | undefined) {
|
|
if (value === undefined) return
|
|
try {
|
|
return base64Decode(value)
|
|
} catch {
|
|
return
|
|
}
|
|
}
|