Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-13T23:22:35.000Z (about 1 year ago)
- Last Synced: 2024-10-31T03:08:23.815Z (2 months 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://img.shields.io/github/v/tag/thechampagne/nimzip?label=version)](https://github.com/thechampagne/nimzip/releases/latest) [![](https://img.shields.io/github/license/thechampagne/nimzip)](https://github.com/thechampagne/nimzip/blob/main/LICENSE)
Nim binding for a portable, simple **zip** library.
### Download
```
nimble install nimzip
```### Example
```nim
import nimzipwhen 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).