{"id":22075661,"url":"https://github.com/nexxkinn/littlezip","last_synced_at":"2025-10-18T00:10:00.081Z","repository":{"id":62421793,"uuid":"316204611","full_name":"Nexxkinn/littleZip","owner":"Nexxkinn","description":"memory-friendly basic zip compression, decompression, and single file extraction for deno framework","archived":false,"fork":false,"pushed_at":"2021-09-14T05:05:32.000Z","size":25,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-18T15:15:18.493Z","etag":null,"topics":["deno","zip"],"latest_commit_sha":null,"homepage":"https://gitlab.com/Nexxkinn/littlezip","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nexxkinn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-26T11:05:17.000Z","updated_at":"2024-02-05T07:04:58.000Z","dependencies_parsed_at":"2022-11-01T17:31:59.886Z","dependency_job_id":null,"html_url":"https://github.com/Nexxkinn/littleZip","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexxkinn%2FlittleZip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexxkinn%2FlittleZip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexxkinn%2FlittleZip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nexxkinn%2FlittleZip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nexxkinn","download_url":"https://codeload.github.com/Nexxkinn/littleZip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227440828,"owners_count":17776660,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","zip"],"created_at":"2024-11-30T22:10:29.489Z","updated_at":"2025-10-18T00:09:55.062Z","avatar_url":"https://github.com/Nexxkinn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003cimg src=\"icon.png\" alt=\"littlezip\"\u003e  \n  \u003cbr\u003e\n  \u003cb\u003elittleZip\u003c/b\u003e\n\u003c/h1\u003e\n\n### Features\n- memory-friendly\n- deflate compression by default\n- use few depedencies ( pako and std/join )\n\n### Usage\n```ts\nimport { get_entries, compress, create_zip, open_zip } from 'https://deno.land/x/littlezip@0.4.0/mod.ts'\n\n// read-only single file extraction, currently under development.\nconst file = await Deno.open('test.zip');\nfor (const { filename, index, extract } of get_entries(file)) {\n    if(index == 100){ // or filename === 'test.jpg'\n        const file = await Deno.create('test.jpg');\n        const content = await extract();\n        file.writeSync(content);\n        break;\n    }\n}\n\n// compress\nconst zip = await compress('test/','result.zip');\n\n// create a new zip\nconst zip = await create_zip('path/to/target.zip');\nawait zip.push(buff1,'file.txt');\nawait zip.push(buff2,'image.jpg');\nawait zip.close()   // call this at the end\n\n// edit zip\nconst zip = await open_zip('path/to/target.zip');\nconsole.log(zip.entries())               // ['test.txt']\nawait zip.insert(buff2,'filename.jpg');  // ['test.txt', 'filename.jpg'] // push or replace file content\nawait zip.remove('test.txt');            // ['filename.jpg']\nawait zip.close(); // call this at the end\n```\n\n\n### Limitation\n- No encryption support\n- Optimised for simple use case\n- No Zip64 support","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexxkinn%2Flittlezip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnexxkinn%2Flittlezip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnexxkinn%2Flittlezip/lists"}