Back to home page

PS Kiwi ANSI

A PowerShell ANSI Utility

Built withPS 5.1
Stablecheck
NameKansi
Version25.0.5
Stage60.50 Published
Released2025-06-06 00:00:00
Previous version25.0.0

Kiwi ANSI (Kansi) is a PowerShell module to easily create beautiful ANSI strings.

Kiwi ANSI

Kiwi ANSI is a PowerShell module that provides functionality for handling ANSI sequences, allowing you to format text with colors and styles in the console. It includes classes and functions to convert HTML content into ANSI representations, making it easier to work with styled text.

Example Usage

# Import the module

Import-Module Kansi -Prefix Kn

# Create a new Kansi configuration
$K = New-KnConfig

# Write underlined text
Write-Host ("$($K.Underline)This is underlined$($K.UnderlineOff)")

# You can also use HTML, sort of
$Html = @"
<div>
    <p>This text is <b>bold</b> and this one is <em>emphasized</em>.</p>
</div>
"@

Write-Host (ConvertTo-KnString -Html $Html)
 Show 25.0.0  Show timeline Show