# @gordonmleigh/rollup-plugin-zip

> A Rollup plugin to bundle files into a zip

Latest version **0.1.5** (published 2024-10-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gordonmleigh/rollup-plugin-zip
pnpm add @gordonmleigh/rollup-plugin-zip
yarn add @gordonmleigh/rollup-plugin-zip
bun add @gordonmleigh/rollup-plugin-zip
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities; has provenance.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2024-10-05 |
| First published | 2023-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 0 |
| Author | Gordon Leigh |
| Maintainers | gordonmleigh |
| Keywords | rollup-plugin, rollup, zip |

## Links

- npm: https://www.npmjs.com/package/@gordonmleigh/rollup-plugin-zip
- Repository: https://github.com/gordonmleigh/rollup-plugin-zip
- Homepage: https://github.com/gordonmleigh/rollup-plugin-zip#readme
- Issues: https://github.com/gordonmleigh/rollup-plugin-zip/issues
- npm.io page: https://npm.io/package/@gordonmleigh/rollup-plugin-zip

## Dependencies (1)

- [zip24](https://npm.io/package/zip24.md) ^0.1.6

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.1.5 (latest) — 2024-10-05
- 0.1.4 — 2024-10-05
- 0.1.3 — 2023-12-23
- 0.1.2 — 2023-12-22
- 0.1.1 — 2023-12-17
- 0.1.0 — 2023-12-17

## README

# @gordonmleigh/rollup-plugin-zip

A Rollup plugin to bundle files into a zip.

```javascript
import zip from "@gordonmleigh/rollup-plugin-zip";

export default {
  // in this case, the file will be called "index.js" in the zip
  input: "lib/index.js",

  // it also supports multiple entry points:
  // input: {
  //   entry: "lib/index.js",
  // }

  output: {
    // the zip will be output as "dist/bundle.zip"
    file: "dist/index.mjs",
  },

  plugins: [
    zip({
      // set the name of the zip file (defaults to "bundle.zip")
      outputFileName: "bundle.zip",
      // set an explicit last modified date
      // useful to keep zip hashes identical when the contents haven't changed
      // defaults to the current time
      overrideModifiedDate: new Date(0),
    }),
  ],
};
```

---
_Source: https://npm.io/package/@gordonmleigh/rollup-plugin-zip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
