{"id":23541204,"url":"https://github.com/rdarida/cross-7zip","last_synced_at":"2026-03-11T19:08:33.287Z","repository":{"id":274325121,"uuid":"919105664","full_name":"rdarida/cross-7zip","owner":"rdarida","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-26T15:42:40.000Z","size":9258,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T16:26:01.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rdarida.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-19T18:08:03.000Z","updated_at":"2025-01-26T15:42:44.000Z","dependencies_parsed_at":"2025-01-26T16:36:26.885Z","dependency_job_id":null,"html_url":"https://github.com/rdarida/cross-7zip","commit_stats":null,"previous_names":["rdarida/cross-7zip"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdarida%2Fcross-7zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdarida%2Fcross-7zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdarida%2Fcross-7zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdarida%2Fcross-7zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdarida","download_url":"https://codeload.github.com/rdarida/cross-7zip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239262366,"owners_count":19609518,"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":["7-zip","cross-platform","linux","macos","windows"],"created_at":"2024-12-26T05:14:25.751Z","updated_at":"2026-03-11T19:08:33.280Z","avatar_url":"https://github.com/rdarida.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://repository-images.githubusercontent.com/919105664/7efca389-6d8f-412f-853e-afffe36d42a8\" alt=\"Cover\" /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://npmjs.com/package/cross-7zip/\" target=\"_blank\" alt=\"NPM\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/cross-7zip.svg\" alt=\"NPM Badge\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://github.com/rdarida/cross-7zip\" target=\"_blank\" alt=\"GitHub Repository\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/-repository-222222?style=flat\u0026logo=github\" alt=\"GitHub Repository Badge\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://github.com/rdarida/cross-7zip/actions/workflows/publish.yml\" target=\"_blank\" alt=\"GitHub Actions\"\u003e\n    \u003cimg src=\"https://github.com/rdarida/cross-7zip/actions/workflows/publish.yml/badge.svg\" alt=\"Publish Badge\" /\u003e\n  \u003c/a\u003e\n\n  \u003ca href=\"https://sonarcloud.io/dashboard?id=rdarida_cross-7zip\" target=\"_blank\" alt=\"SonarCloud\"\u003e\n    \u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=rdarida_cross-7zip\u0026metric=coverage\" alt=\"Coverage Badge\" /\u003e\n  \u003c/a\u003e\n\n  \u003cimg src=\"https://img.shields.io/librariesio/release/npm/cross-7zip\" alt=\"Dependencies Badge\" /\u003e\n\u003c/p\u003e\n\u003chr\u003e\n\n# cross-7zip\nCross-platform 7-Zip for Node.js\n\n## Installation\n\nInstall **cross-7zip** via [npm](https://www.npmjs.com/package/cross-7zip).\n\n```sh\nnpm i cross-7zip\n```\n\nor\n\n```sh\nnpm i -g cross-7zip\n```\n\n## API\n\n### `SevenZip`\nA wrapper class for creating 7-Zip archives using the command-line tool.\n[Example](https://rdarida.github.io/cross-7zip/classes/SevenZip.html#example)\n\n### `SevenUnzip`\nA wrapper class for extracting files from a 7-Zip archive using the command-line tool.\n[Example](https://rdarida.github.io/cross-7zip/classes/SevenUnzip.html#example)\n\n### `sevenZip`\nCompresses multiple files into a zipped file **asynchronously**.\n[Example](https://rdarida.github.io/cross-7zip/functions/sevenZip.html#example)\n\n### `sevenUnzip`\nExtracts files from a specified zipped file **asynchronously**.\n[Example](https://rdarida.github.io/cross-7zip/functions/sevenUnzip.html#example)\n\n### `sevenZipSync`\nCompresses multiple files into a zipped file **synchronously**.\n[Example](https://rdarida.github.io/cross-7zip/functions/sevenZipSync.html#example)\n\n### `sevenUnzipSync`\nExtracts files from a specified zipped file **synchronously**.\n[Example](https://rdarida.github.io/cross-7zip/functions/sevenUnzipSync.html#example)\n\n## CLI Tool Usage\n\nThis package also includes a CLI tool for quick and simple operations with 7-Zip.\nBelow are some examples of how to use it:\n\n### Installation\n\nMake sure the package is installed globally to access the CLI tool:\n\n```bash\nnpm install -g cross-7zip\n```\n\n### Commands\n\n**Create an Archive**\n\nTo compress files or directories into an archive, use the `zip` command:\n\n```bash\nseven zip \u003coutput_archive\u003e \u003cfile_paths...\u003e\n```\n\n**Extract Files from an Archive**\n\nTo extract files from an archive, use the `unzip` command:\n\n```bash\nseven unzip \u003cinput_archive\u003e [destination]\n```\n\n### Examples\n\n**Create `example.7z` from `file1.txt` `folder`**\n\n```bash\nseven zip example.7z file1.txt folder\n```\n\n**Extract Files from the `example.7z` into the `ouput` folder**\n\n```bash\nseven unzip example.7z ouput\n```\n\n## Supported Platforms and Architectures\n\nThis library relies on the 7-Zip executables, which support the following\nplatforms and architectures:\n\n- **Windows**: `arm64`, `x86`, `x64`\n- **macOS**: `arm64`, `x86, x64`\n- **Linux**: `arm`, `arm64`, `x86`, `x64`\n\nFor details, click [here](https://github.com/rdarida/cross-7zip/blob/main/7zip/README.md).\n\n\u003chr\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e\n    \u003cstrong\u003eResources\u003cstrong\u003e\n  \u003c/summary\u003e\n\n- [Documentation](https://rdarida.github.io/cross-7zip/)\n- [7-Zip](https://www.7-zip.org/)\n- [execFileSync](https://nodejs.org/api/child_process.html#child_process_child_process_execfilesync_file_args_options)\n- **Windows**\n  * [Compress-Archive](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/compress-archive?view=powershell-7.4\u0026viewFallbackFrom=powershell-7.1)\n  * [Expand-Archive](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.archive/expand-archive?view=powershell-7.4\u0026viewFallbackFrom=powershell-7.1)\n- **Unix**\n  * [zip](https://linux.die.net/man/1/zip)\n  * [unzip](https://linux.die.net/man/1/unzip)\n\u003c/details\u003e\n\u003chr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"LICENSE\" target=\"_blank\" alt=\"License\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-green\" alt=\"License Badge\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdarida%2Fcross-7zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdarida%2Fcross-7zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdarida%2Fcross-7zip/lists"}