Socket
Socket
Sign inDemoInstall

do-not-zip

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    do-not-zip

Do not zip. Just store.


Version published
Weekly downloads
21K
increased by1.18%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

v0.1.1

  • Prefer outputting as a Blob over a Buffer, as it's possible that Buffer will have been polyfilled in the browser

Readme

Source

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

Keywords

FAQs

Last updated on 19 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc