A simple npm package to extract and process the contents of a zip file.
npm install zipouter
npm install adm-zip
const { extractAndProcessZip } = require("zipouter");
or;
import { extractAndProcessZip } from "zipouter";
const zipFileName = "your-zip-file.zip";
extractAndProcessZip(zipFileName)
.then((results) => {
console.log("Compilation Results:", results);
})
.catch((error) => {
console.error("Error:", error.message);
});
Before 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:
- Extract and process zip files.
- Support for multiple programming languages, including Java, JavaScript, Python, and more.
Extracts and processes the contents of a zip file.
zipFileName
: The name of the zip file to process.
Returns a promise that resolves to an array of CompilationResult
objects.
fileName
: Name of the processed file.output
: Compilation output or error message.
- Java: Files with a
.java
extension. - JavaScript: Files with a
.js
extension. - Python: Files with a
.py
extension.
import { extractAndProcessZip } from "zipouter";
const zipFileName = "example.zip";
extractAndProcessZip(zipFileName)
.then((results) => {
console.log("Compilation Results:", results);
})
.catch((error) => {
console.error("Error:", error);
});
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have suggestions, please open an issue on GitHub.