(content: string)
| 30 | } |
| 31 | |
| 32 | export function getBinaryFile(content: string): string | null { |
| 33 | if (content.startsWith('base64::')) { |
| 34 | const binaryContent = Buffer.from(content.replace('base64::', ''), 'base64') |
| 35 | return binaryContent as unknown as string |
| 36 | } |
| 37 | return null |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Returns a path without leading ./ or / prefix. |
no test coverage detected