PHP Rocks
JSZip + node.js - Druckversion

+- PHP Rocks (https://www.php-rocks.de)
+-- Forum: HTML, CSS, Usability und Barrierefreiheit (https://www.php-rocks.de/https://www.php-rocks.de/forum/11-html-css-usability-und-barrierefreiheit.html)
+--- Forum: JavaScript / JavaScript Frameworks / Ajax (https://www.php-rocks.de/https://www.php-rocks.de/forum/13-javascript-javascript-frameworks-ajax.html)
+--- Thema: JSZip + node.js (/https://www.php-rocks.de/thema/105-jszip-nodejs.html)



JSZip + node.js - Till - 15.06.2016

Hallo,
ich versuche mit JSZIp http://stuk.github.io/jszip/documentation/api_zipobject/node_stream.html
und node.js eine .zip Datei zu entpacken, aber ich kriegs irgendwie nicht hin?

Code:
console.log(data.length );   //44497577

                     zip.loadAsync(data,{optimizedBinaryString:true}).then(function(z){
                                console.dir(z);   //<- wird nicht aufgrufen, then geht nicht                         
                                                              //auch nicht optimizedBinaryString:false
                     });

        console.dir(zip.files);  //Object
        console.dir(zip.files.length);    //undefined

Die synchronen Methoden sind alle removed ebenso funktioniert asNodeBuffer() http://stackoverflow.com/questions/29038985/node-js-jszip-library-to-extract bei mir nicht.


RE: JSZip + node.js - Till - 15.06.2016

Hiermit komme ich nun klar: https://github.com/cthackers/adm-zip