You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.
MacOS: do nothing because zip is installed on MacOS by default
Run yarn add joli-zip or npm i joli-zip
Usage
Typescript
import{zip}from'joli-zip';import{join}from'path';zip(['file_1.pdf','file_2.pdf',// (List of files and folder to zip)],'test.zip',// (output file name){password: 'any password',// (zip password)workingDirectory: __dirname,// (Folder contains files to zip)})
Javascript
const{ zip }=require('joli-zip');const{ join }=require('path')zip(['file_1.pdf','file_2.pdf',// (List of files and folder to zip)],'test.zip',// (output file name){password: 'any password',// (zip password)workingDirectory: __dirname,// (Folder contains files to zip)})