ConvertTo-CasingStyle¶
SYNOPSIS¶
Convert a string to a different casing style
SYNTAX¶
__AllParameterSets¶
ConvertTo-CasingStyle [-Text] <string> [-To] <string> [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION¶
This function converts a string to a different casing style.
EXAMPLES¶
EXAMPLE 1¶
'thisIsCamelCase' | ConvertTo-CasingStyle -To 'snake_case'
Convert the string 'thisIsCamelCase' to 'this_is_camel_case'
EXAMPLE 2¶
'thisIsCamelCase' | ConvertTo-CasingStyle -To 'UPPER_SNAKE_CASE'
Convert the string 'thisIsCamelCase' to 'THIS_IS_CAMEL_CASE'
EXAMPLE 3¶
'thisIsCamelCase' | ConvertTo-CasingStyle -To 'kebab-case'
PARAMETERS¶
-Text¶
The string to convert
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-To¶
The casing style to convert the string to
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
System.String¶
{{ Fill in the Description }}
OUTPUTS¶
[string] - The converted string¶
{{ Fill in the Description }}
System.String¶
{{ Fill in the Description }}