Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

nodejs jszip create zip file as buffer

let zip = new JSZip()

zip.file( 'test.txt', testFileBuffer, { binary : true } )

const buffer = await zip.generateAsync({ 
  type : "nodebuffer", 
  compression: 'DEFLATE' 
})
 
PREVIOUS NEXT
Tagged: #nodejs #jszip #create #zip #file #buffer
ADD COMMENT
Topic
Name
4+9 =