https://github.com/startautomating/psprettifier
Prettify your PowerShell
https://github.com/startautomating/psprettifier
Last synced: 10 months ago
JSON representation
Prettify your PowerShell
- Host: GitHub
- URL: https://github.com/startautomating/psprettifier
- Owner: StartAutomating
- License: mit
- Created: 2022-09-28T23:58:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T20:56:06.000Z (over 3 years ago)
- Last Synced: 2025-03-24T08:46:06.942Z (10 months ago)
- Language: PowerShell
- Size: 66.4 KB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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 |