Help language development. Donate to The Perl Foundation

Archive::SimpleZip cpan:PMQS last updated on 2020-06-27

Archive-SimpleZip-0.4.0/

Archive::SimpleZip

Raku (Perl6) module to write Zip archives.

Linux build Windows build MacOS build Build Status Build Status

Synopsis

use Archive::SimpleZip;

# Create a zip file in filesystem
my $obj = SimpleZip.new("mine.zip");

# Add a file to the zip archive
$obj.add("somefile.txt".IO);

# Add a Blob/String
$obj.add("payload data here", :name<data1>);
$obj.add(Blob.new([2,4,6]), :name<data2>);

# Drop a filehandle into the zip archive
my $handle = "some file".IO.open;
$obj.add($handle, :name<data3>);

use IO::Glob;
$zip.add(glob("*.c"));

$obj.close();

Description

Simple write-only interface to allow creation of Zip files.

Please note - this is module is a prototype. The interface will change.

Support

Suggestions/patches are welcomed via github at

https://github.com/pmqs/Archive-SimpleZip

Licence

Please see the LICENCE file in the distribution

(C) Paul Marquess 2016-2020