Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Alex ☕🇨🇦
@Alexjgriffith@mastodon.gamedev.place  ·  activity timestamp 3 weeks ago

Zipping and unzipping files in fennel has always given me headaches.

LuaZip, the default lua-zip available in Apt only allows you to read files, not write them.

Brimworks has a lua-zip library (my goto) that reads and writes, but has compatibility issue with emscripten in some browsers / operating systems.

This weekend I wrote my own minimal wrapper around lua-zlib in fennel that lets you read a zip file directly into a table of strings and vice versa.

https://codeberg.org/alexjgriffith/luzip

#fennel

Codeberg.org

luzip

luzip
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login