kesarion / simple-archiver Goto Github PK
View Code? Open in Web Editor NEWArchive multiple files, directories, buffers, streams and strings; supports 'zip' and 'tar' formats; can also extract to path
License: MIT License
Archive multiple files, directories, buffers, streams and strings; supports 'zip' and 'tar' formats; can also extract to path
License: MIT License
Installing package behind coporate proxy is failing for kesarion/node-unzipper as github resolution is failing.
It would be better if we have dependency purely npm instead of github
Is compressing into parts of smaller files supported?
Main file 200mb
Compressed-1 50mb
Compressed-2 50mb
Compressed-3 50mb
Greetings!
I am using simple-archiver just today and I think I am almost there.
I need to send the zip file as a buffer (I do not wish to save it to the fs)
I am getting an empty archive.
I have the following code:
rows = [an array of objects]
for(var i = 0;i < rows.length;i++){
buffer3.push({ data: rows[i].FILE, type: rows[i].TYPE, name: rows[i].NAME });
}
archive([
buffer3
], {
format: 'zip',
output: __dirname + '/files/'+ user + '/' + file
})
.then(socket.emit('zip-selected', {buffer3: buffer3}))
.catch(console.log);
the code on the receiving end is:
rtnSocket('zip-selected', [data, name], function(data){
var name = $('#zip-input').val() + '.zip';
var a = document.createElement('A');
a.href = data.buffer3;
a.download = name;
a.click();
})
can you see what I am doing wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.