An open API service indexing awesome lists of open source software.

https://github.com/startautomating/psprettifier

Prettify your PowerShell
https://github.com/startautomating/psprettifier

Last synced: 10 months ago
JSON representation

Prettify your PowerShell

Awesome Lists containing this project

README

          

# PSPrettifier

PSPrettifier is an extensible prettifier for PowerShell.

You can make any script a little bit nicer by using PSPrettifier:

~~~PowerShell
Install-Module PSPrettifier -Scope CurrentUser
Import-Module PSPrettifier
PSPrettify {
"this script is a little more indented than it needs to be"
if ($thereIsABlock) {
"it should also be indented"
}
}
~~~

Prettification is done using a series of Prettifier scripts.

You can list prettifiers using:

~~~PowerShell
Get-Prettifier
~~~

|Name |Synopsis |
|--------------------------------------------------------------------------------------------|---------------------------------|
|[HangLongAssignments.prettify.ps1.DisplayName](Prettifiers/HangLongAssignments.prettify.ps1)|Hangs long assignment statements.|
|[IndentGroups.prettify.ps1.DisplayName](Prettifiers/IndentGroups.prettify.ps1) |Indents Groups |