Skip to content
/ zip Public

Dependency-free library for creating ZIP files in the browser

Notifications You must be signed in to change notification settings

litejs/zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LiteJS Zip – Coverage Size Buy Me A Tea

Dependency-free JavaScript library for creating ZIP files (~1.2KB). Uses the CompressionStream API if available; otherwise will generate uncompressed ZIP.

Examples

const { createZip } = require("@litejs/zip");
const fileBlob = await createZip([
    { name: "file-a.txt", content: "Some content" },
    { name: "dir/file-b.txt", content: Uint8Array.from("012"), time: new Date(2020, 1, 21) },
])

Contributing

Follow Coding Style Guide, run tests npm install; npm test.

Copyright (c) 2023-2024 Lauri Rooden <[email protected]>
MIT License | GitHub repo | npm package | Buy Me A Tea

About

Dependency-free library for creating ZIP files in the browser

Topics

Resources

Security policy

Stars

Watchers

Forks

Sponsor this project