{"id":13825425,"url":"https://github.com/feross/cross-zip","last_synced_at":"2025-04-04T13:11:05.060Z","repository":{"id":7432490,"uuid":"56370030","full_name":"feross/cross-zip","owner":"feross","description":"Cross-platform .zip file creation","archived":false,"fork":false,"pushed_at":"2024-02-12T03:39:20.000Z","size":42,"stargazers_count":126,"open_issues_count":7,"forks_count":25,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-23T07:19:38.375Z","etag":null,"topics":["create-zip-file","cross-zip","file","javascript","nodejs","zip","zip-file"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/feross.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-16T06:51:42.000Z","updated_at":"2024-06-18T12:37:33.826Z","dependencies_parsed_at":"2024-06-18T12:37:31.932Z","dependency_job_id":"fec08a78-a37f-4032-8aff-c23e359a71cb","html_url":"https://github.com/feross/cross-zip","commit_stats":{"total_commits":53,"total_committers":10,"mean_commits":5.3,"dds":"0.28301886792452835","last_synced_commit":"eba335474e6142468bd8904f6456208db906d40d"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcross-zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcross-zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcross-zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fcross-zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/cross-zip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240981555,"owners_count":19888346,"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":["create-zip-file","cross-zip","file","javascript","nodejs","zip","zip-file"],"created_at":"2024-08-04T09:01:20.645Z","updated_at":"2025-03-21T11:09:18.865Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# cross-zip [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[ci-image]: https://img.shields.io/github/workflow/status/feross/cross-zip/ci/master\n[ci-url]: https://github.com/feross/cross-zip/actions\n[npm-image]: https://img.shields.io/npm/v/cross-zip.svg\n[npm-url]: https://npmjs.org/package/cross-zip\n[downloads-image]: https://img.shields.io/npm/dm/cross-zip.svg\n[downloads-url]: https://npmjs.org/package/cross-zip\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Cross-platform .zip file creation\n\n## install\n\n```\nnpm install cross-zip\n```\n\n## usage\n\n```js\nvar zip = require('cross-zip')\n\nvar inPath = path.join(__dirname, 'myFolder') // folder to zip\nvar outPath = path.join(__dirname, 'myFile.zip') // name of output zip file\n\nzip.zipSync(inPath, outPath)\n```\n\n## api\n\n### `zip.zip(inPath, outPath, [callback])`\n\nZip the folder at `inPath` and save it to a .zip file at `outPath`. If a `callback`\nis passed, then it is called with an `Error` or `null`.\n\n### `zip.zipSync(inPath, outPath)`\n\nSync version of `zip.zip`.\n\n### `zip.unzip(inPath, outPath, [callback])`\n\nUnzip the .zip file at `inPath` into the folder at `outPath`. If a `callback` is\npassed, then it is called with an `Error` or `null`.\n\n### `zip.unzipSync(inPath, outPath)`\n\nSync version of `zip.unzip`.\n\n## Windows users\n\nThis package requires [.NET Framework 4.5 or later](https://www.microsoft.com/net)\nand [Powershell 3](https://www.microsoft.com/en-us/download/details.aspx?id=34595).\nThese come **pre-installed** on Windows 8 or later.\n\nOn Windows 7 or earlier, you will need to install these manually in order for\n`cross-zip` to function correctly.\n\n## reference\n\n- [Stack Overflow - zipping from command line in Windows](https://stackoverflow.com/questions/17546016/how-can-you-zip-or-unzip-from-the-command-prompt-using-only-windows-built-in-ca)\n\n## related\n\n- [cross-zip-cli](https://github.com/jprichardson/cross-zip-cli): CLI version of cross-zip.\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fcross-zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fcross-zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fcross-zip/lists"}