Skip to content

Can zip.js run in Node.js? #288

Answered by gildas-lormeau
ArndBrugman asked this question in Q&A
Discussion options

You must be logged in to vote

I confirm it's possible to use zip.js (v2.3.19+) in Node.js (v14.8+) by polyfilling the Blob and the Worker APIs, see this example https://github.com/gildas-lormeau/zip.js/blob/3b9d2f2d789c95cddb4787f42a120c11b88dc7c5/tests/node/. The code in the test() function should run on client-side (i.e. in the browser) or server-side (in Node.js) without needing any change.

Replies: 2 comments 5 replies

This comment has been hidden.

@gildas-lormeau

This comment has been hidden.

Comment options

You must be logged in to vote
4 replies
@ArndBrugman
Comment options

@gildas-lormeau
Comment options

@ArndBrugman
Comment options

@gildas-lormeau
Comment options

Answer selected by gildas-lormeau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants