1STREAMZIP(1)          User Contributed Perl Documentation         STREAMZIP(1)
2
3
4

NAME

6       streamzip - create a zip file from stdin
7

SYNOPSIS

9           producer | streamzip [opts] | consumer
10           producer | streamzip [opts] -zipfile=output.zip
11

DESCRIPTION

13       This program will read data from "stdin", compress it into a zip
14       container and, by default, write a streamed zip file to "stdout". No
15       temporary files are created.
16
17       The zip container written to "stdout" is, by necessity, written in
18       streaming format. Most programs that read Zip files can cope with a
19       streamed zip file, but if interoperability is important, and your
20       workflow allows you to write the zip file directly to disk you can
21       create a non-streamed zip file using the "zipfile" option.
22
23   OPTIONS
24       -zip64
25            Create a Zip64-compliant zip container. Use this option if the
26            input is greater than 4Gig.
27
28            Default is disabled.
29
30       -zipfile=F
31            Write zip container to the filename "F".
32
33            Use the "Stream" option to force the creation of a streamed zip
34            file.
35
36       -member-name=M
37            This option is used to name the "file" in the zip container.
38
39            Default is '-'.
40
41       -stream
42            Ignored when writing to "stdout".
43
44            If the "zipfile" option is specified, including this option will
45            trigger the creation of a streamed zip file.
46
47            Default: Always enabled when writing to "stdout", otherwise
48            disabled.
49
50       -method=M
51            Compress using method "M".
52
53            Valid method names are
54
55                * store    Store without compression
56                * deflate  Use Deflate compression [Deflault]
57                * bzip2    Use Bzip2 compression
58                * lzma     Use LZMA compression
59
60            Note that Lzma compress needs "IO::Compress::Lzma" to be
61            installed.
62
63            Default is "deflate".
64
65       -version
66            Display version number [$VERSION]
67
68       -help
69            Display help
70
71   When to use a Streamed Zip File
72       A Streamed Zip File is useful in situations where you cannot seek
73       backwards/forwards in the file.
74
75       A good examples is when you are serving dynamic content from a Web
76       Server straight into a socket without needing to create a temporary zip
77       file in the filesystsm.
78
79       Similarly if your workfow uses a Linux pipelined commands.
80

SUPPORT

82       General feedback/questions/bug reports should be sent to
83       <https://github.com/pmqs/IO-Compress/issues> (preferred) or
84       <https://rt.cpan.org/Public/Dist/Display.html?Name=IO-Compress>.
85

AUTHOR

87       Paul Marquess pmqs@cpan.org.
88
90       Copyright (c) 2019-2020 Paul Marquess. All rights reserved.
91
92       This program is free software; you can redistribute it and/or modify it
93       under the same terms as Perl itself.
94
95
96
97perl v5.32.0                      2020-08-01                      STREAMZIP(1)
Impressum