MCPcopy Index your code
hub / github.com/simstudioai/sim / createZip

Function createZip

apps/sim/lib/pptx-renderer/parser/zip-parser.test.ts:5–11  ·  view source on GitHub ↗
(entries: Record<string, string | Uint8Array>)

Source from the content-addressed store, hash-verified

3import { parseZip } from '@/lib/pptx-renderer/parser/zip-parser'
4
5async function createZip(entries: Record<string, string | Uint8Array>): Promise<ArrayBuffer> {
6 const zip = new JSZip()
7 for (const [path, content] of Object.entries(entries)) {
8 zip.file(path, content)
9 }
10 return zip.generateAsync({ type: 'arraybuffer' })
11}
12
13describe('parseZip', () => {
14 it('extracts PPTX package parts into categorized maps', async () => {

Callers 1

zip-parser.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected