Do not zip. Just store.
https://conduitry.dev/do-not-zip
.eslintrc.yaml | ||
do-not-zip.js | ||
LICENSE | ||
README.md |
do-not-zip
Do not zip. Just store.
What
Stick some text files into a zip file. Works on the server (Node.js) and on the client (JavaScript). Requires ES2015+.
Usage
const output = doNotZip([{ path: 'path/to/file1.txt', data: 'Hello' }, { path: 'another/file2.txt', data: 'World' }]);
// output will be a Buffer on the server and a Blob on the client
Thanks
https://github.com/mrananyan/ZipperJS and https://users.cs.jmu.edu/buchhofp/forensics/formats/pkzip.html
License
Copyright (c) 2018 Conduitry