D binding for a portable, simple zip library.
dub add zip
import zip;
void main()
{
zip_t* z = zip_open("/tmp/d.zip", 6, 'w');
scope(exit) zip_close(z);
zip_entry_open(z, "test");
scope(exit) zip_entry_close(z);
string content = "test content";
zip_entry_write(z, content.ptr, content.length);
}
This repo is released under the MIT License.