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
Owners
Copyright
(c) 2026 Steven Hsin.
Package Details
Author(s)
- Steve H.
Tags
PowerShell Console Terminal ANSI Color Formatting Unicode Logging Windows
Functions
PSEditions
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
- PSWriteText.nuspec
- LICENSE.md
- PSWriteText.psd1
- PSWriteText.psm1
- README.md
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 (current version) | 5 | 9/8/2026 |