Just looking for a simple solution to downloading and unzipping .zip or .tar.gz files in Node.js on any operating system.
.zip
.tar.gz
Not sure if this
Download and extract for .tar.gz:
const https = require("https"); const tar = require("tar"); https.get("https://url.to/your.tar.gz", function(response) { response.pipe( tar.x({ strip: 1, C: "some-dir" }) ); });