No description
Find a file
2023-10-14 02:20:19 +03:00
src add code 2023-10-14 01:55:18 +03:00
.gitattributes Initial commit 2023-10-14 01:54:40 +03:00
.gitignore Initial commit 2023-10-14 01:54:40 +03:00
LICENSE Initial commit 2023-10-14 01:54:40 +03:00
nimzip.nimble add code 2023-10-14 01:55:18 +03:00
README.md add example 2023-10-14 02:20:19 +03:00

nimzip

Nim binding for a portable, simple zip library.

Download

nimble install nimzip

Example

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

License

This repo is released under the MIT License.