Easypt

zip

..Root.compression.zip

Compress zip archive. Under the hood:

OS command description
windows powershell -command "Compress-Archive -Path \"inputPath\" -Force -DestinationPath \"pathToZipFile\"" Compress-Archive
linux zip -r "pathToZipFile" "inputPath" zip

(warning: commands prints own output)

Child of:

compression

Signatures:

Object, Callable, BlockCallable

Example:

import("compression");
compression.zip("./contents/*", "pack.zip");