0.0.7 • Published 9 months ago

@weborigami/zip v0.0.7

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

This Origami package provides functions for packing any treelike object into a ZIP file, or unpacking a ZIP file in order to treat it as a tree.

Usage

After installing via npm, in the root of your Origami project create a config.ori file:

{
  zip.handler = package:@weborigami/zip
}

This will instruct Origami to use the .zip extension handler in this package to process files that end with the .zip extension. (You can also use the related .epub extension handler.)

For example, you can use this to get a listing of the contents in the sample test/fixtures/test.zip file, extract a file, or copy all files out of the ZIP archive:

$ ori @keys test.zip
- ReadMe.md
- sub
$ ori test.zip/ReadMe.md
This is a ReadMe file.
$ ori @copy test.zip, @mkdir/extracted
$ ls extracted
ReadMe.md sub
0.0.7

9 months ago

0.0.5

10 months ago

0.0.6

10 months ago

0.0.3

1 year ago

0.0.4

12 months ago

0.0.2

1 year ago

0.0.1

1 year ago