1
Fork 0
Do not zip. Just store. https://conduitry.dev/do-not-zip
Go to file
Josh Duff c0533dd3d6 Adding tests for browser and node
JSZip's browser/ESM support is tenuous, but it appears to support browserify.
2018-04-19 22:29:15 -04:00
test Adding tests for browser and node 2018-04-19 22:29:15 -04:00
.eslintrc.yaml docs and stuff 2018-04-19 12:25:25 -04:00
.gitignore Adding tests for browser and node 2018-04-19 22:29:15 -04:00
CHANGELOG.md v0.1.1 2018-04-19 17:38:31 -04:00
LICENSE docs and stuff 2018-04-19 12:25:25 -04:00
README.md update readme 2018-04-19 17:12:36 -04:00
do-not-zip.js prefer outputting as Blob, in case Buffer has been polyfilled on browser 2018-04-19 17:37:27 -04:00
package.json Adding tests for browser and node 2018-04-19 22:29:15 -04:00
rollup.config.js add build process 2018-04-19 17:07:21 -04:00
rollup.config.test.js Adding tests for browser and node 2018-04-19 22:29:15 -04:00

README.md

do-not-zip

npm version

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';
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