MCPcopy Index your code
hub / github.com/massCodeIO/massCode / isZipFile

Function isZipFile

src/main/http/import/zip.ts:5–7  ·  view source on GitHub ↗
(file: HttpImportFile)

Source from the content-addressed store, hash-verified

3import JSZip from 'jszip'
4
5function isZipFile(file: HttpImportFile): boolean {
6 return file.name.toLowerCase().endsWith('.zip')
7}
8
9function decodeBase64(value: string): Buffer {
10 return Buffer.from(value, 'base64')

Callers 1

expandZipFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected