Answers for "zip a folder node js npm"

C
0

npm fs zip

import * as fs from 'fs-zip' // Zip operationsfs.readdir('/home/user/Documents/test.zip/subdir')    .then(res => console.log(res)) fs.readFile('/home/user/Documents/test.zip/subdir/file.txt', 'utf8', (err, text) => {    console.log(text)}) // Filesystem operationsfs.readdir('/home/user/Documents/')    .then(res => console.log(res)) fs.readFile('/home/user/Documents/file.txt', 'utf8', (err, text) => {    console.log(text)}) 
Posted by: Guest on November-22-2020

Code answers related to "C"

Browse Popular Code Answers by Language