@ztwx/cm-zip
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@ztwx/cm-zip

compress uncompress


API

  • zip compress
const {zip} =require("@ztwx/cm-zip");

zip("/xxx/inputDir","result.zip")
    .then(()=>...)
    .catch(()=>...)
  • zip uncompress
const {unzip}=require("@ztwx/cm-zip");
unzip("xx/input.zip","outputDir")
    .then(()=>...)
    .catch(()=>...)
  • zip progress
zip(INPUTDIR,OUTPUTZIP,filepath=>console.log(filepath))
unzip(INPUTZIP,OUTPUTDIR,filepath=>console.log(filepath))

cli

Global install first

    npm install -g @ztwx/cm-zip
  • To compress
cm-zip -c ${INPUT_DIR} ${OUTPUT_ZIP}
  • To uncompress
cm-zip -x ${INPUT_ZIP} ${OUTPUT_DIR}

Readme

Keywords

Package Sidebar

Install

npm i @ztwx/cm-zip

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

17.4 kB

Total Files

16

Last publish

Collaborators

  • buildstrap
  • hecaiming
  • echo_hx
  • lousicong
  • zhantewei