package out-channel-redirect

  1. Overview
  2. Docs
Redirect and capture output written to out_channels

Install

dune-project
 Dependency

Authors

Maintainers

Sources

out-channel-redirect-0.2.tbz
sha256=ad427e8dd36fe18347cc4a574af17777e0650f5585345fab582ceefb16ee219e
sha512=3e186e5f9b40979f4909d772eb6475ed587f997ad392c85b62c8c1f81a89cd20d44624832b82939ca2833a560c3244123a7d33a66581c94243ff8eef69a96640

doc/CHANGES.html

0.2 (2026-05-19)

  • Add capture_channels and capture_channels_interleaved for capturing a list of channels (separately or merged into one string)
  • Add capture_outputs and capture_outputs_interleaved for stdout and stderr (separately or merged)
  • capture is now an alias for capture_outputs_interleaved
  • Raise OCaml lower bound to 4.11

0.1

  • Initial release
  • Redirect and capture output written to out_channels
  • Support for native (via dup/dup2), JavaScript (js_of_ocaml), and WebAssembly (wasm_of_ocaml)
  • Exception-safe capture with Fun.protect
  • Expert API for manual redirection lifetime control