ps-prettifier
2024.2.24.1201
Powershell script formatting tool, based on PowerShell-Beautifier by Dan Ward.
Installation Options
Owners
Copyright
(c) Scott McKendry. All rights reserved.
Package Details
Author(s)
- Scott McKendry
Functions
Initialize-ProcessVariables Get-ValidCommandName Get-ValidCommandParameterName Get-ValidAttributeName Get-ValidMemberName Get-ValidVariableName Add-StringContentToDestinationFileStreamWriter Copy-ArrayContentFromSourceArrayToDestinationFileStreamWriter Import-ScriptContent Invoke-TokenizeSourceScriptContent Copy-SourceContentToDestinationStream Write-TokenContentByType Write-TokenContent_Attribute Write-TokenContent_Command Write-TokenContent_CommandArgument Write-TokenContent_CommandParameter Write-TokenContent_Comment Write-TokenContent_GroupEnd Write-TokenContent_GroupStart Write-TokenContent_KeyWord Write-TokenContent_LoopLabel Write-TokenContent_LineContinuation Write-TokenContent_Member Write-TokenContent_NewLine Write-NewLine Write-TokenContent_Number Write-TokenContent_Operator Write-TokenContent_Position Write-TokenContent_StatementSeparator Write-TokenContent_String Write-TokenContent_Type Write-TokenContent_Variable Write-TokenContent_Unknown Test-AddSpaceFollowingToken Invoke-PrettifyScript Set-LookupTableValuesFromFile Save-LookupTableValuesToFile Update-RegenerateLookupTableValuesFile Set-LookupTableValuesFromMemory Initialize-ValidCommandNames Get-CoreSafeAliases Initialize-ValidCommandParameterNames Initialize-ValidAttributeNames Initialize-ValidMemberNames Initialize-ValidVariableNames Invoke-Main Add-FileEncodingByteOrderMarker Get-FileEncoding Get-FileEncodingSystemProviderNameFromTypeName Get-FileEncodingTypeFromName Compare-Files Compare-FilesIncludingBOM Compare-FilesIgnoringBOM
Dependencies
This module has no dependencies.
FileList
- ps-prettifier.nuspec
- docs\BeforeAfterVSCode.png
- docs\HowItWorks.md
- src\ps-prettifierMain.psm1
- test\1_Input_Bad\Case\Members.ps1
- test\1_Input_Bad\FileEncoding\ASCII_NoBOM.ps1
- test\1_Input_Bad\FileEncoding\UTF8_NoBOM.ps1
- test\1_Input_Bad\Whitespace\NonWindowsLineEnding.ps1
- test\3_Output_Correct\Case\Parameters.ps1
- test\3_Output_Correct\FileEncoding\UTF16_BE_BOM.ps1
- test\3_Output_Correct\FileEncoding\UTF8_NoBOM.ps1
- test\3_Output_Correct\Whitespace\Indentation_4space.ps1
- build.ps1
- docs\ChangeLog.md
- docs\Roadmap.md
- src\ps-prettifierPopulateValidNames.psm1
- test\1_Input_Bad\Case\ParameterAttributes.ps1
- test\1_Input_Bad\FileEncoding\UTF16_BE_BOM.ps1
- test\1_Input_Bad\Rename\Alias.ps1
- test\1_Input_Bad\Whitespace\WithinLine.ps1
- test\3_Output_Correct\Case\Types.ps1
- test\3_Output_Correct\FileEncoding\UTF16_BE_NoBOM.ps1
- test\3_Output_Correct\Rename\Alias.ps1
- test\3_Output_Correct\Whitespace\Indentation_tab.ps1
- LICENSE
- docs\Compare_CaseChanges.png
- docs\Testing.md
- test\Invoke-DTWBeautifyScriptTests.ps1
- test\1_Input_Bad\Case\Parameters.ps1
- test\1_Input_Bad\FileEncoding\UTF16_BE_NoBOM.ps1
- test\1_Input_Bad\Whitespace\CmdletDefinition.ps1
- test\3_Output_Correct\Case\Commands.ps1
- test\3_Output_Correct\CompleteFiles\Clear-PSFSitecoreRecycleBin.ps1
- test\3_Output_Correct\FileEncoding\UTF16_LE_BOM.ps1
- test\3_Output_Correct\Whitespace\CmdletDefinition.ps1
- test\3_Output_Correct\Whitespace\NoNewLineAtEndOfFile.ps1
- docs\Compare_Whitespace.png
- docs\TokenizeExample.md
- test\Automation\Invoke-RunTestScriptInDockerCoreContainers.ps1
- test\1_Input_Bad\Case\Types.ps1
- test\1_Input_Bad\FileEncoding\UTF16_LE_BOM.ps1
- test\1_Input_Bad\Whitespace\DotSource.ps1
- test\3_Output_Correct\Case\Members.ps1
- test\3_Output_Correct\CompleteFiles\Remove-PSFOldContent.ps1
- test\3_Output_Correct\FileEncoding\UTF16_LE_NoBOM.ps1
- test\3_Output_Correct\Whitespace\DotSource.ps1
- test\3_Output_Correct\Whitespace\NonWindowsLineEnding.ps1
- ps-prettifier.psd1
- docs\ExternalEditors.md
- docs\_config.yml
- test\Automation\README.md
- test\1_Input_Bad\CompleteFiles\Clear-PSFSitecoreRecycleBin.ps1
- test\1_Input_Bad\FileEncoding\UTF16_LE_NoBOM.ps1
- test\1_Input_Bad\Whitespace\Indentation.ps1
- test\3_Output_Correct\Case\ParameterAttributes.ps1
- test\3_Output_Correct\FileEncoding\ASCII_NoBOM.ps1
- test\3_Output_Correct\FileEncoding\UTF8_BOM.ps1
- test\3_Output_Correct\Whitespace\Indentation_2space.ps1
- test\3_Output_Correct\Whitespace\WithinLine.ps1
- README.md
- docs\FAQ.md
- src\FileSystem.Encoding.psm1
- test\1_Input_Bad\Case\Commands.ps1
- test\1_Input_Bad\CompleteFiles\Remove-PSFOldContent.ps1
- test\1_Input_Bad\FileEncoding\UTF8_BOM.ps1
- test\1_Input_Bad\Whitespace\NoNewLineAtEndOfFile.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
2024.2.24.1430 | 119 | 2/24/2024 |
2024.2.24.1353 | 7 | 2/24/2024 |
2024.2.24.1350 | 5 | 2/24/2024 |
2024.2.24.1228 | 7 | 2/23/2024 |
2024.2.24.1201 (current version) | 6 | 2/23/2024 |