https://github.com/thechampagne/zip-d
D binding for a portable, simple zip library.
https://github.com/thechampagne/zip-d
dlang dlanguage zip
Last synced: 5 months ago
JSON representation
D binding for a portable, simple zip library.
- Host: GitHub
- URL: https://github.com/thechampagne/zip-d
- Owner: thechampagne
- License: mit
- Created: 2023-10-13T18:16:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T13:13:44.000Z (over 2 years ago)
- Last Synced: 2025-04-05T11:29:26.895Z (about 1 year ago)
- Topics: dlang, dlanguage, zip
- Language: D
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zip-d
[](https://github.com/thechampagne/zip-d/releases/latest) [](https://github.com/thechampagne/zip-d/blob/main/LICENSE)
D binding for a portable, simple **zip** library.
### Download
[DUB](https://code.dlang.org/packages/zip/)
```
dub add zip
```
### Example
```d
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);
}
```
### References
- [zip](https://github.com/kuba--/zip)
### License
This repo is released under the [MIT License](https://github.com/thechampagne/zip-d/blob/main/LICENSE).