8000 GitHub - PlutoLang/pluto-zip: A zip library for Pluto.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PlutoLang/pluto-zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

pluto-zip

A zip library for Pluto.

Documentation

This library exports the following functions:

  • list(bin)
  • read(bin, path)
  • readex(bin, offset, compressed_size)
  • create(files) — note that no compression will be performed

Example: Creating a zip

local zip = require "zip"

io.contents("hello.zip", zip.create({
    ["hello.txt"] = "Hello from pluto-zip!"
}))

Example: Reading a zip

local zip = require "zip"

local bin = io.contents("hello.zip")
print(dumpvar(zip.list(bin)))
print(zip.read(bin, "hello.txt"))

About

A zip library for Pluto.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

0