(filePath: string)
| 59 | }; |
| 60 | |
| 61 | export const readFileIntoUint8Array = async (filePath: string): Promise<Uint8Array> => { |
| 62 | const buffer = await readFile(filePath); |
| 63 | const uint8Array = new Uint8Array(buffer); |
| 64 | |
| 65 | return uint8Array; |
| 66 | }; |
| 67 | |
| 68 | export const toBlobString = (buffer: Uint8Array): string => { |
| 69 | return Array.from(buffer) |
no outgoing calls
no test coverage detected