https://github.com/thechampagne/nimzip
Nim binding for a portable, simple zip library.
https://github.com/thechampagne/nimzip
nim nim-lang nimble zip
Last synced: about 1 year ago
JSON representation
Nim binding for a portable, simple zip library.
- Host: GitHub
- URL: https://github.com/thechampagne/nimzip
- Owner: thechampagne
- License: mit
- Created: 2023-10-13T22:56:13.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T23:22:35.000Z (over 2 years ago)
- Last Synced: 2025-02-10T22:27:58.615Z (over 1 year ago)
- Topics: nim, nim-lang, nimble, zip
- Language: Nim
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nimzip
[](https://github.com/thechampagne/nimzip/releases/latest) [](https://github.com/thechampagne/nimzip/blob/main/LICENSE)
Nim binding for a portable, simple **zip** library.
### Download
```
nimble install nimzip
```
### Example
```nim
import nimzip
when isMainModule:
var zip = zip_open("/tmp/nim.zip", 6, 'w')
discard zip_entry_open(zip, "test")
let content: cstring = "test content"
discard zip_entry_write(zip, content, csize_t(len(content)))
discard zip_entry_close(zip)
zip_close(zip)
```
### References
- [zip](https://github.com/kuba--/zip)
### License
This repo is released under the [MIT License](https://github.com/thechampagne/nimzip/blob/main/LICENSE).