1
Fork 0
Do not zip. Just store. https://conduitry.dev/do-not-zip
Find a file
2018-04-19 12:25:25 -04:00
.eslintrc.yaml docs and stuff 2018-04-19 12:25:25 -04:00
do-not-zip.js first version of code 2018-04-19 12:15:20 -04:00
LICENSE docs and stuff 2018-04-19 12:25:25 -04:00
README.md docs and stuff 2018-04-19 12:25:25 -04:00

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