
On November 22, 2011,
JiLiZART was
informed to all of us that there is a useful open source JSZip library written in Java and able to create
zip archives (and even, if necessary, with subdirectories) from the text and binary data that it feeds.
The first comment to his post was
my words :
- Perfectly.
')
- Now he would still be able to unpack.
Half a year has passed since then, and you can see that this natural wish has come true: obviously, it came to me not only to me, so the programmers set to work - and in the source code of JSZip opened
on GitHab they added methods that can also serve to unpack the
zip archives, not just compiling them. (For details on the use of new API, see
the documentation .)
In the open source it is always nice to see how other people act in the direction of your thoughts.
Fans of the
Node.js javascript engine will certainly be equally pleased to learn about the appearance of the
node-zip module, which contains all the JSZip code, designed as a Node module. So, now JSZip can be run not only in the browser, but also on the server, as well as on your computer.
The wrapper around JSZip is entirely contained in the
nodeZip.js script
code and can serve as an excellent example of using
the vm module , which serves to access the V8 virtual machine in the depths of Node.