{"id":29189388,"url":"https://github.com/coderaiser/node-zip-to-tar","last_synced_at":"2025-08-21T08:16:01.391Z","repository":{"id":57406085,"uuid":"114139638","full_name":"coderaiser/node-zip-to-tar","owner":"coderaiser","description":"convert zip archives to tar","archived":false,"fork":false,"pushed_at":"2020-11-10T18:55:20.000Z","size":25,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T19:45:45.892Z","etag":null,"topics":["archive","convert","extract","nodejs","pack","tar","zip"],"latest_commit_sha":null,"homepage":null,"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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-13T15:49:46.000Z","updated_at":"2020-11-10T18:55:20.000Z","dependencies_parsed_at":"2022-09-11T23:52:16.500Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/node-zip-to-tar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/node-zip-to-tar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-zip-to-tar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-zip-to-tar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-zip-to-tar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-zip-to-tar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/node-zip-to-tar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fnode-zip-to-tar/sbom","scorecard":{"id":297406,"data":{"date":"2025-08-11","repo":{"name":"github.com/coderaiser/node-zip-to-tar","commit":"3e15a6bec895bb8be66b437476fb75b508099c77"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T19:53:31.867Z","repository_id":57406085,"created_at":"2025-08-17T19:53:31.867Z","updated_at":"2025-08-17T19:53:31.867Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271448405,"owners_count":24761441,"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","status":"online","status_checked_at":"2025-08-21T02:00:08.990Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["archive","convert","extract","nodejs","pack","tar","zip"],"created_at":"2025-07-01T23:07:24.490Z","updated_at":"2025-08-21T08:16:01.351Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zip-to-tar [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nConvert zip archives to tar.\n\n## Global\n\n`zip-to-tar` could be installed globally and used as `zip-to-tar` or `zip2tar`:\n\n```\nnpm i zip-to-tar -g\n```\n\n### Usage\n\nConvert all `zip` archives to `tar.gz` in same directory:\n\n```\nzip2tar *.zip\n```\n\n\u003e Make every program a filter\n\u003e\n\u003e (c) Mike Gancarz: The UNIX Philosophy\n\nConvert `zip` data from `stdin` and pipe it to `stdout`.\n\n```\ncat arc.zip | zip2tar \u003e arc.tar\n```\n\n## Local\n\n`zip-to-tar` could be used localy. It will emit event on every file from converted archive.\n\n## Install\n\n```\nnpm i zip-to-tar --save\n```\n\n## API\n\n`zip-to-tar` can work with `filename` and `ReadableStream`. When `filename` used `zip-to-tar` can emit\nprogress of coverting (with `options`: `{progress: true}`).\n\n### zipToTar(filename, options)\n\n- `filename` - **string** name of the file\n- `options` - **object** with properties:\n  - `progress` - whether emit `progress` event.\n\n```js\nconst zipToTar = require('zip-to-tar');\nconst fs = require('fs');\nconst {stdout} = process;\nconst onProgress = (n) =\u003e {\n    stdout.write(`\\r${n}`);\n};\n\nconst onFinish = (e) =\u003e {\n    stdout.write('\\n');\n};\n\nconst onError = ({message}) =\u003e {\n    console.error(message)\n};\n\nconst tar = fs.createWriteStream('file.tar');\nconst progress = true;\n\nzipToTar('file.zip', {progress})\n    .on('progress', onProgress)\n    .on('file', console.log)\n    .on('error', onError);\n    .getStream()\n    .pipe(tar)\n    .on('finish', onFinish);\n\n```\n\n### zipToTar(buffer)\n\n- `buffer` - **Buffer** with `zip` data.\n\n```js\nconst zipToTar = require('zip-to-tar');\nconst fs = require('fs');\nconst {stdout} = process;\n\nconst onProgress = (n) =\u003e {\n    stdout.write(`\\r${n}`);\n};\n\nconst onFinish = (e) =\u003e {\n    stdout.write('\\n');\n};\n\nconst onError = ({message}) =\u003e {\n    console.error(message)\n};\n\nconst zip = fs.readFileSync('file.zip');\nconst tar = fs.createReadStream('file.tar');\nconst progress = true;\n\nzipToTar(zip, {progress})\n    .on('file', console.log)\n    .on('error', onError);\n    .getStream()\n    .pipe(tar)\n    .on('finish', onFinish);\n```\n\n## Related\n\n- [Jaguar](https://github.com/coderaiser/node-jaguar \"Jaguar\") - Pack and extract .tar.gz archives with emitter.\n- [OneZip](https://github.com/coderaiser/node-onezip \"OneZip\") - Pack and extract zip archives with emitter.\n- [tar-to-zip](https://github.com/coderaiser/node-tar-to-zip \"Tar To Zip\") - Convert tar and tar.gz archives to zip.\n\n## License\n\nMIT\n\n[NPMIMGURL]:                https://img.shields.io/npm/v/zip-to-tar.svg?style=flat\n[BuildStatusIMGURL]:        https://img.shields.io/travis/coderaiser/node-zip-to-tar/master.svg?style=flat\n[DependencyStatusIMGURL]:   https://img.shields.io/david/coderaiser/node-zip-to-tar.svg?style=flat\n[LicenseIMGURL]:            https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]:                   https://npmjs.org/package/zip-to-tar \"npm\"\n[BuildStatusURL]:           https://travis-ci.org/coderaiser/node-zip-to-tar  \"Build Status\"\n[DependencyStatusURL]:      https://david-dm.org/coderaiser/node-zip-to-tar \"Dependency Status\"\n[LicenseURL]:               https://tldrlegal.com/license/mit-license \"MIT License\"\n\n[CoverageURL]:              https://coveralls.io/github/coderaiser/node-zip-to-tar?branch=master\n[CoverageIMGURL]:           https://coveralls.io/repos/coderaiser/node-zip-to-tar/badge.svg?branch=master\u0026service=github\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fnode-zip-to-tar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fnode-zip-to-tar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fnode-zip-to-tar/lists"}