A PowerShell module to handle work with ASCII.
Install-Module -Name fscps.asciiInstall-Module -Name fscps.ascii -Scope CurrentUserGet-Command -Module fscps.asciiUpdate-Module -name fscps.asciiUpdate-Module -name fscps.ascii -ForceThe Convert-FSCPSTextToAscii function is a PowerShell utility that converts a given text into ASCII art using a specified font. It also supports optional border styles and customizable colors for both the text and the border. This function is ideal for creating visually appealing text banners or decorations in scripts, logs, or console outputs.
- Description: Specifies the text to be converted into ASCII art.
- Type:
string - Required: Yes
- Description: Specifies the font to be used for generating the ASCII art.
- Type:
string - Required: Yes
- Description: Defines the type of border to apply around the ASCII art.
- Type:
BorderType(Enum) - Required: No
- Default Value:
None
- Description: Sets the color for the ASCII art text.
- Type:
string - Required: No
- Default Value:
White - Allowed Values:
BlackDarkBlueDarkGreenDarkCyanDarkRedDarkMagentaDarkYellowGrayDarkGrayBlueGreenCyanRedMagentaYellowWhite
- Description: Sets the color for the border around the ASCII art.
- Type:
string - Required: No
- Default Value:
Gray - Allowed Values:
BlackDarkBlueDarkGreenDarkCyanDarkRedDarkMagentaDarkYellowGrayDarkGrayBlueGreenCyanRedMagentaYellowWhite
- Description: A switch to include a timestamp in the output.
- Type:
switch - Required: No
- Default Value:
$false
- Description: Specifies the vertical layout type for the ASCII art.
- Type:
LayoutType(Enum) - Required: No
- Default Value:
Default
- Description: Specifies the horizontal layout type for the ASCII art.
- Type:
LayoutType(Enum) - Required: No
- Default Value:
Default
- Description: A switch to display hard blanks in the ASCII art.
- Type:
switch - Required: No
- Default Value:
$false
- Description: A switch to enable breaking lines at whitespace.
- Type:
switch - Required: No
- Default Value:
$false
- Description: The maximum width of the screen for rendering the ASCII art.
- Type:
int - Required: No
- Default Value:
100
- Description: The padding to apply to the ASCII art. Defaults to
0. - Type:
int - Required: No
- Default Value:
0
- Description: A switch to specify the print direction of the ASCII art.
- Type:
switch - Required: No
- Default Value:
$false(left-to-right)
- Description: The name of the variable to store the ASCII art with color formatting.
- Type:
string - Required: No
- Description: The name of the variable to store the ASCII art without color formatting.
- Type:
string - Required: No
- Description: Converts the text "Hello" into ASCII art using the "Standard" font without any border or color customization.
Convert-FSCPSTextToAscii -Text "Hello" -Font "Standard"- Output:
- Description: Converts the text "Welcome" into ASCII art using the "Slant" font and surrounds it with a box border.
Convert-FSCPSTextToAscii -Text "Welcome" -Font "Slant" -BorderType Box- Output:
- Description: Converts the text "PowerShell" into ASCII art using the "Big" font, surrounds it with an asterisk border, and applies yellow text with a green border.
Convert-FSCPSTextToAscii -Text "PowerShell" -Font "Big" -BorderType Asterisk -TextColor Yellow -BorderColor Green- Output:
- Description: Converts the text "No Border" into ASCII art using the "Standard" font with cyan-colored text and no border.
Convert-FSCPSTextToAscii -Text "No Border" -Font "Standard" -TextColor Cyan- Output:
- Description: Converts the text "Dots Border" into ASCII art using the "Standard" font, surrounds it with a dots border, and applies magenta text with a dark gray border.
Convert-FSCPSTextToAscii -Text "Dots Border" -Font "Standard" -BorderType Dots -TextColor Magenta -BorderColor DarkGray- Output:
- Description: Converts the text "Timestamp Example" into ASCII art using the "Standard" font, surrounds it with a box border, and enables detailed information (timestamp) in the output.
Convert-FSCPSTextToAscii -Text "Timestamp Example" -Font "Standard" -BorderType Box -Timestamp- Output:
π All fonts examples here !!!
- PowerShell 5.1 or later
PSFrameworkmodule (if used for additional functionality)
This script is provided under the MIT License. Feel free to use and modify it as needed.





