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