npm simple zip file creator
zipper = require('zipper').Zipper;
var zipfile = new zipper('/path/to/my/zipfile.zip');
zipfile.addFile('myfile.txt', '/path/to/myfile.txt', function (err) {
if (err) throw err;
// Do stuff
});
npm simple zip file creator
zipper = require('zipper').Zipper;
var zipfile = new zipper('/path/to/my/zipfile.zip');
zipfile.addFile('myfile.txt', '/path/to/myfile.txt', function (err) {
if (err) throw err;
// Do stuff
});
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)})
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us