Node.js readFileSync ZIP file

前端 未结 3 1810
甜味超标
甜味超标 2021-01-20 13:46

I am trying to read a ZIP file and output it to the browser, get the code that\'s shown on the page and save it as a ZIP file

fs.readFileSync(\'/dir/file.zip         


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-20 14:08

    You need to use zlib module of nodejs for these purposes https://nodejs.org/api/zlib.html#zlib_zlib_createunzip_options

提交回复
热议问题