package prettym

  1. Overview
  2. Docs
An memory-bounded encoder according to RFC 822

Install

dune-project
 Dependency

Authors

Maintainers

Sources

prettym-0.0.4.tbz
sha256=39f461d4dbc0d605486c9077dba3ca0a3307a8fba69f56c128eb3efebb5c35d5
sha512=5b3330915bbaba6e858cffcb889f5d3b22d6ccf35511ca504aa4ea15c58cff2ca1e564995b27c8274e5832de0aa750e1f25fe3cbac082061045cbbcd2f9ef2f6

Description

A best effort memory-bounded encoder to respect the 80 column limitation

Published: 28 Nov 2025

README

Prettym, a bounded encoder with the colums constraint

prettym is a simple bounded encoder to serialize human readable values and respect the 80-column constraint. It permits to serialize values in the respect of RFC 822 and put fws token when necessary.

For example, a list of email addresses should fits under the 80 column for an email. The encoder should find the opportunity to add a line breaker plus a space to respect RFC 822.

Dependencies (4)

  1. bstr
  2. ke >= "0.4"
  3. dune >= "2.8"
  4. ocaml >= "4.08.0"

Dev Dependencies (4)

  1. base64 with-test
  2. jsonm with-test
  3. alcotest with-test
  4. ptime with-test

Used by (3)

  1. mrmime >= "0.4.0"
  2. multipart_form >= "0.3.0"
  3. piaf >= "0.2.0"

Conflicts

None