{"id":20278456,"url":"https://github.com/thecoderadi/zipouter","last_synced_at":"2025-07-19T20:35:18.770Z","repository":{"id":227046441,"uuid":"769825980","full_name":"TheCoderAdi/zipouter","owner":"TheCoderAdi","description":"A simple npm package to extract and process the contents of a zip file.","archived":false,"fork":false,"pushed_at":"2024-03-11T10:07:10.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T15:16:54.766Z","etag":null,"topics":["javascript","typescript","zip","zipouter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/zipouter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCoderAdi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-10T06:56:45.000Z","updated_at":"2024-09-17T10:35:59.000Z","dependencies_parsed_at":"2024-03-11T10:56:04.109Z","dependency_job_id":"6280cd1c-9845-4c3d-9cf2-1c2791c63dcf","html_url":"https://github.com/TheCoderAdi/zipouter","commit_stats":null,"previous_names":["thecoderadi/zip-outer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2Fzipouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2Fzipouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2Fzipouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCoderAdi%2Fzipouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCoderAdi","download_url":"https://codeload.github.com/TheCoderAdi/zipouter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241768283,"owners_count":20017129,"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":["javascript","typescript","zip","zipouter"],"created_at":"2024-11-14T13:23:37.495Z","updated_at":"2025-03-04T01:44:27.908Z","avatar_url":"https://github.com/TheCoderAdi.png","language":"TypeScript","readme":"# zipouter\r\n\r\n[![npm version](https://img.shields.io/npm/v/zipouter.svg)](https://www.npmjs.com/package/zipouter)\r\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)\r\n\r\nA simple npm package to extract and process the contents of a zip file.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install zipouter\r\n```\r\n\r\n## Additional Package to Install\r\n\r\n```bash\r\nnpm install adm-zip\r\n```\r\n\r\n## Usage\r\n\r\n```javascript\r\nconst { extractAndProcessZip } = require(\"zipouter\");\r\nor;\r\nimport { extractAndProcessZip } from \"zipouter\";\r\n\r\nconst zipFileName = \"your-zip-file.zip\";\r\n\r\nextractAndProcessZip(zipFileName)\r\n  .then((results) =\u003e {\r\n    console.log(\"Compilation Results:\", results);\r\n  })\r\n  .catch((error) =\u003e {\r\n    console.error(\"Error:\", error.message);\r\n  });\r\n```\r\n\r\n## Important\r\n\r\nBefore proceeding further, ensure that you have Java, Node.js, and Python installed on your local machine. You can download and install them from the official websites:\r\n\r\n- [Java](https://www.oracle.com/java/technologies/javase-downloads.html)\r\n- [Node.js](https://nodejs.org/)\r\n- [Python](https://www.python.org/)\r\n\r\n## Features\r\n\r\n- Extract and process zip files.\r\n- Support for multiple programming languages, including Java, JavaScript, Python, and more.\r\n\r\n## API Reference\r\n\r\n### `extractAndProcessZip(zipFileName: string): Promise\u003cCompilationResult[]\u003e`\r\n\r\nExtracts and processes the contents of a zip file.\r\n\r\n- `zipFileName`: The name of the zip file to process.\r\n\r\nReturns a promise that resolves to an array of `CompilationResult` objects.\r\n\r\n#### `CompilationResult`\r\n\r\n- `fileName`: Name of the processed file.\r\n- `output`: Compilation output or error message.\r\n\r\n## Supported Languages\r\n\r\n- **Java**: Files with a `.java` extension.\r\n- **JavaScript**: Files with a `.js` extension.\r\n- **Python**: Files with a `.py` extension.\r\n\r\n## Example\r\n\r\n# 0.First upload your zip file in the current directory \u003cbr/\u003e\r\n\r\n![image](https://github.com/TheCoderAdi/zipouter/assets/111285422/ff3118b7-9614-490c-b0ca-3aeb40dc6ea9)\r\n\r\n# 1.import and use the extractAndProcessZip from zipouter\r\n\r\n```javascript\r\nimport { extractAndProcessZip } from \"zipouter\";\r\n\r\nconst zipFileName = \"example.zip\";\r\nextractAndProcessZip(zipFileName)\r\n  .then((results) =\u003e {\r\n    console.log(\"Compilation Results:\", results);\r\n  })\r\n  .catch((error) =\u003e {\r\n    console.error(\"Error:\", error);\r\n  });\r\n```\r\n\r\n# 2.Output\u003cbr/\u003e\r\n\r\n![image](https://github.com/TheCoderAdi/zipouter/assets/111285422/e322047e-5e68-4a86-a79a-19c5ce196cb9)\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\r\n\r\n## Issues\r\n\r\nIf you encounter any issues or have suggestions, please [open an issue on GitHub](https://github.com/TheCoderAdi/zipouter/issues).\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecoderadi%2Fzipouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecoderadi%2Fzipouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecoderadi%2Fzipouter/lists"}