ASM.Extensions.Rendering.Sinks.File (ASM v0.9.2)

Copy Markdown View Source

Sink that writes rendered output to a file with ANSI escape codes stripped.

Options:

  • :path (required unless :io is provided)
  • :io (optional pre-opened IO device; not closed by this sink)
  • :append (optional, default false)
  • :strip_ansi (optional, default true)

Summary

Types

t()

@type t() :: %{
  path: String.t() | nil,
  io: term(),
  owns_io: boolean(),
  strip_ansi: boolean()
}