{"id":13775066,"url":"https://github.com/mentaljam/rollup-plugin-zip","last_synced_at":"2025-06-30T14:11:20.764Z","repository":{"id":47481570,"uuid":"174343638","full_name":"mentaljam/rollup-plugin-zip","owner":"mentaljam","description":"Rollup plugin to zip up emitted files.","archived":false,"fork":false,"pushed_at":"2023-08-03T06:31:11.000Z","size":127,"stargazers_count":4,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T11:12:27.314Z","etag":null,"topics":["emitted-files","plugin","rollup","rollup-plugin","zip"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/rollup-plugin-zip","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mentaljam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-03-07T12:53:17.000Z","updated_at":"2024-05-03T18:39:20.000Z","dependencies_parsed_at":"2024-01-13T12:52:44.726Z","dependency_job_id":"8f94bc5b-005b-4318-b92b-51a5fd4b454e","html_url":"https://github.com/mentaljam/rollup-plugin-zip","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":0.02631578947368418,"last_synced_commit":"b1e476e906167b502d19d11fa63fb89ae4411ef2"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mentaljam/rollup-plugin-zip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mentaljam","download_url":"https://codeload.github.com/mentaljam/rollup-plugin-zip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mentaljam%2Frollup-plugin-zip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262788745,"owners_count":23364399,"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":["emitted-files","plugin","rollup","rollup-plugin","zip"],"created_at":"2024-08-03T17:01:33.456Z","updated_at":"2025-06-30T14:11:20.720Z","avatar_url":"https://github.com/mentaljam.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Output"],"readme":"# rollup-plugin-zip\n\n[Rollup](https://github.com/rollup/rollup) plugin to zip up emitted files.\n\nThis plugin was inspired by the\n[zip-webpack-plugin](https://github.com/erikdesjardins/zip-webpack-plugin).\n\nrollup-plugin-zip doesn't list the output directory but gets entries from the\nresulting bundle. Hence it doesn't archive any additional assets which was copied\nto the output firectory manually. To handle additional assets use the\n[rollup-plugin-copy2](https://github.com/mentaljam/rollup-plugin-copy2) plugin.\n\n## Install\n\n```sh\nnpm i -D rollup-plugin-zip\n```\n\n## Usage\n\n```js\n// rollup.config.js\n\nimport zip from 'rollup-plugin-zip'\n\n\nexport default {\n  input: 'index.js',\n  output: {\n    dir: 'dist',\n    format: 'es',\n  },\n  plugins: [\n    zip(),\n  ],\n}\n```\n\n## Options\n\n### file\n\n#### Type\n\n```js\nstring\n```\n\n#### Default\n\n```js\n`${npm_package_name}-${npm_package_version}.zip` || `bundle-${npm_package_version}.zip` || 'bundle.zip'\n```\n\nOptional name or path to the output zip file. Relative paths are resolved in the Rollup destination directory.\nTo change the destination directory without changing the file name use the [dir option](#dir).\n\n### dir\n\n#### Type\n\n```js\nstring\n```\n\n#### Default\n\nRollup destination directory if `file` is not set. If `file` is set then `dir` is ignored.\n\nOptional path to the directory where to write the output zip file.\nRelative paths are resolved in the package base directory.\n\n## License\n\n[MIT](LICENSE) © [Petr Tsymbarovich](mailto:petr@tsymbarovich.ru)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmentaljam%2Frollup-plugin-zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmentaljam%2Frollup-plugin-zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmentaljam%2Frollup-plugin-zip/lists"}