Download packages/app/src/utils/base64.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 218 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/utils/base64.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/app/src/utils/base64.ts
-
curl -L -o base64.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/app/src/utils/base64.ts
218 Bytes
| import { base64Decode } from "@opencode-ai/core/util/encode" | |
| export function decode64(value: string | undefined) { | |
| if (value === undefined) return | |
| try { | |
| return base64Decode(value) | |
| } catch { | |
| return | |
| } | |
| } | |