miniz

Bindings for Miniz lib.

Wrapper score 30/100 · tests present · docs generated

Wraps a native library — check OS Compatibility below for platform-specific linking notes.

Summary

Latest Version Unknown
License MIT
CI Status Passing
Downloads 0
Last Indexed 2026-07-21 05:24

Installation

nimble install miniz
choosenim install miniz
git clone https://github.com/treeform/miniz

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
miniz - - - - - - -

Source

Repository https://github.com/treeform/miniz
Homepage https://github.com/treeform/miniz
Documentation View Documentation
Registry Source nimble_official

README

Miniz - Wrapper for Miniz lib.

⚠️UPDATE: Miniz is abandoned in favor of: * https://github.com/guzba/zippy if you need support for zlib deflate compression, gzip or zip files. (Pure nim without dependencies.) * https://github.com/guzba/supersnappy if you don't care about talking to old APIs and just want faster compression. (Pure nim without dependencies.)

Exposes only 2 functions compress() and uncompress().

Miniz is a Single C source file zlib-replacement library: https://github.com/richgel999/miniz

import miniz

let
  str = "test string"
  zstr = compress(str, level=11)
echo uncompress(zstr)

Thats it. Pretty easy.

Small, does not include dependencies on .so or .dll files. Compiles on windows. Easy.