Message from JavaScript discussions

September 2020

— That takes a json schema and renders a form

— 

I want to overwrite a file in an existing zip in nodejs. Can you recommend any library?
Some modules only extract zip files.. some only zip folders..

— JSZip

— I can't find something decent

— My goto lib for zip

— Thanks :) will try it

— // load zip from buffer / path / stream / whatever
const zip = await JSZip.loadAsync(...);

// add / update file in zip
zip.file(path, data);

// pipe to some output (fs or http response or whatever)
zip.nodeStream().pipe(fs.createWriteStream(path)) ;

Message permanent page

— This sounds like all you need

— Https://stuk.github.io/jszip/documentation/api_jszip.html

— Looks good :)

— Use tmp folder🤤

— You mean extract to fs and rezip?