MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / base64EncodeFile

Function base64EncodeFile

lib/utils.js:700–702  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

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

Callers 4

analyze.jsFile · 0.90
attachFileMethod · 0.90
attachFileMethod · 0.90
attachFileMethod · 0.90

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected