{"id":15495800,"url":"https://github.com/kejunmao/zzip","last_synced_at":"2025-04-22T21:04:46.484Z","repository":{"id":148912066,"uuid":"599526594","full_name":"KeJunMao/zzip","owner":"KeJunMao","description":"Use the command to compression dist to zip, tar, taz. 一行命令压缩 dist 为 zip, tar, taz.","archived":false,"fork":false,"pushed_at":"2023-10-27T07:15:19.000Z","size":91,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T21:02:52.309Z","etag":null,"topics":["compression","dist","npx","zip"],"latest_commit_sha":null,"homepage":"","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/KeJunMao.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}},"created_at":"2023-02-09T10:26:12.000Z","updated_at":"2023-10-27T12:35:20.000Z","dependencies_parsed_at":"2023-07-25T01:33:06.513Z","dependency_job_id":"574cadb4-c839-4e8c-b532-34ed210c6d43","html_url":"https://github.com/KeJunMao/zzip","commit_stats":null,"previous_names":["kejunmao/zzip"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeJunMao%2Fzzip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeJunMao%2Fzzip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeJunMao%2Fzzip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeJunMao%2Fzzip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeJunMao","download_url":"https://codeload.github.com/KeJunMao/zzip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324687,"owners_count":21411943,"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":["compression","dist","npx","zip"],"created_at":"2024-10-02T08:19:40.388Z","updated_at":"2025-04-22T21:04:46.430Z","avatar_url":"https://github.com/KeJunMao.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zzip\n\n\u003e Compression dist to zip, tar, taz. Powered by [compressing](https://www.npmjs.com/package/compressing)\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n## Quick Start\n\nCompression the dist folder to dist.zip\n\n```sh\nnpx zzip\n# dist.zip\n```\n\nCompression the dist folder to dist.tgz\n\n```sh\nnpx zzip --mode=tgz\n# dist.tgz\n```\n\nFormating output name\n\n```sh\nnpx zzip --name=\"format:dist-%cd%h\"\n# dist-2023-02-09-2421035.zip\n```\n\nFormating date\n\n```sh\nnpx zzip --name=\"format:dist-%cd-%tag\" --date=format:\"%Y%m%d\"\n# dist-20230209-v0.0.1.zip\n```\n\n## CLI Usage\n\n```sh\nnpx zzip [...args] [\u003centries\u003e]\n```\n\n**Arguments:**\n\n- `--outdir`: The output dir, **.** will be used as default.\n- `--name`: The output name. When not provided, **format:%entry.name** will be used as default. Use `--name[=\u003cformat\u003e]` to format name. See [git commit formatting](https://www.git-scm.com/docs/git-log#Documentation/git-log.txt---prettyltformatgt), In addition to the formats provided by git, the following formats are supported:\n  - `%tag`: latest tag name\n  - `%entry.name`: first file/dir name\n  - `%package.name`: package.json displayName or name field\n- `--mode`: Compression mode. When not provided, **zip** will be used as as default.\n- `--overwrite`: Whether to overwrite the output file, **true** will be used as as default. When using `--no-overwrite`, an error will be thrown when the file exists\n- `--date=\u003cformat\u003e`: **short** will be used as as default. see [more](https://www.git-scm.com/docs/git-log#Documentation/git-log.txt---dateltformatgt)\n\n## Configuration\n\nConfiguration is loaded by [unjs/c12](https://github.com/unjs/c12) from cwd. You can use either `zip.config.json`, `zip.config.{ts,js,mjs,cjs}`, `.ziprc`.\n\nSee [./src/config.ts](./src/config.ts) for available options and defaults.\n\n## 💻 Development\n\n- Clone this repository\n- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js \u003c 16.10)\n- Install dependencies using `pnpm install`\n- Run interactive tests using `pnpm dev`\n\n## License\n\nMade with 💛\n\nPublished under [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkejunmao%2Fzzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkejunmao%2Fzzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkejunmao%2Fzzip/lists"}