huffman

Huffman encode/decode for Nim.

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License Apache-2.0
CI Status Failing
Downloads 0
Last Indexed 2026-07-22 05:28

Installation

nimble install huffman
choosenim install huffman
git clone https://github.com/xzeshen/huffman

OS Compatibility

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

Source

Repository https://github.com/xzeshen/huffman
Homepage https://github.com/xzeshen/huffman
Registry Source nimble_official

README

huffman

Huffman encode/decode for Nim.

API: huffman

import huffman

proc readHuffman

Encodes data.

proc readHuffman(s: Stream): string {.inline, raises: [Defect, IOError, OSError], tags: [ReadIOEffect].}

proc readHuffman

Encodes data.

proc readHuffman(s: string = "input.txt"): string {.inline, raises: [Defect, IOError, OSError], tags: [ReadIOEffect].}

proc huffman

Decodes data.

proc huffman(text: string; path = "output.txt") {.inline, raises: [KeyError, Defect, IOError, OSError, Exception], tags: [WriteIOEffect].}