1.0.5 • Published 5 years ago

@ztwx/cm-zip v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

@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}
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago