PSWriteText

1.0.0

A lightweight PowerShell console formatting module with segmented colors, ANSI styles, Unicode-aware alignment, and logging.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSWriteText

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSWriteText

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Steven Hsin.

Package Details

Author(s)

  • Steve H.

Tags

PowerShell Console Terminal ANSI Color Formatting Unicode Logging Windows

Functions

Write-Text

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

Initial release of PSWriteText.

Features:
- Segmented foreground colors.
- Per-segment background colors.
- ANSI styles including Bold, Dim, Italic, Underline, Reverse, Strike, Blink, and Hidden.
- Combined ANSI styles such as Bold+Underline.
- Best-effort Unicode-aware horizontal centering with graceful fallback when RawUI is unavailable.
- Validated, consistent timestamps and bounded console spacing helpers.
- Optional UTF-8 file logging with literal-path handling and up to 5 retries.
- WhatIf and Confirm support for log appends.
- Non-terminating log errors by default, silent IgnoreLogError, and opt-in ErrorAction Stop.

PSWriteText is derived from and extends PSWriteColor by EvotecIT.

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 5 9/8/2026