Eazip
@eazip/core

@eazip/core

The framework-agnostic engine behind Eazip.

@eazip/core is the framework-agnostic engine behind eazip: feed it files, blobs, or remote URLs and get back a ZIP the browser downloads. It's ESM-only, tree-shakeable, and needs zero configuration to start zipping locally in the browser. @eazip/react wraps this package with a hook and a UI component; everything it does is built on the primitives documented here.

npm install @eazip/core

In this section

Prefer a walkthrough first? Getting started and Quickstart (vanilla) cover the same ground with a working example. Using React? Skip straight to @eazip/react.

Entry points

Four entry points, so a bundler only pulls in what you actually use:

Import fromContents
@eazip/coreEverything — local and cloud, dispatched by strategy.
@eazip/core/localBrowser zipping only — no cloud code in your bundle.
@eazip/core/cloudCloud sessions only — no @zip.js/zip.js in your bundle.
@eazip/core/sharedTypes, errors, and the input/download utilities both engines share.