How to download and unzip a zip file in memory in NodeJs?
You need a library that can handle buffers. The latest version of adm-zip will do: npm install adm-zip My solution uses the http.get method, since it returns Buffer chunks. Code: var file_url=”http://notepad-plus-plus.org/repository/7.x/7.6/npp.7.6.bin.x64.zip”; var AdmZip = require(‘adm-zip’); var http = require(‘http’); http.get(file_url, function(res) { var data = [], dataLen = 0; res.on(‘data’, function(chunk) { data.push(chunk); dataLen … Read more