1
Fork 0
Do not zip. Just store. https://conduitry.dev/do-not-zip
Find a file
2018-04-19 17:10:33 -04:00
.eslintrc.yaml docs and stuff 2018-04-19 12:25:25 -04:00
.gitignore add build process 2018-04-19 17:07:21 -04:00
CHANGELOG.md v0.1.0 2018-04-19 17:10:33 -04:00
do-not-zip.js tidy 2018-04-19 17:09:52 -04:00
LICENSE docs and stuff 2018-04-19 12:25:25 -04:00
package.json add build process 2018-04-19 17:07:21 -04:00
README.md update readme 2018-04-19 13:09:45 -04:00
rollup.config.js add build process 2018-04-19 17:07:21 -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

import doNotZip from '.../do-not-zip.js';
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

License

Copyright (c) 2018 Conduitry