(filePath)
| 698 | } |
| 699 | |
| 700 | export const base64EncodeFile = function (filePath) { |
| 701 | return Buffer.from(fs.readFileSync(filePath)).toString('base64') |
| 702 | } |
| 703 | |
| 704 | export const getMimeType = function (fileName) { |
| 705 | const ext = path.extname(fileName).toLowerCase() |
no test coverage detected