Select-HtmlJavaScriptConfig
August 3, 2026 ยท View on GitHub
SYNOPSIS
Selects JavaScript application configuration objects and framework state from inline HTML scripts.
SYNTAX
Node (Default)
Select-HtmlJavaScriptConfig [-HtmlNode] <Object> [-Name <string[]>] [-Contains] [-StartsWith] [-PropertyPath <string[]>] [-NoAppState] [-Tolerant] [<CommonParameters>]
Content
Select-HtmlJavaScriptConfig -Content <string> [-Name <string[]>] [-Contains] [-StartsWith] [-PropertyPath <string[]>] [-NoAppState] [-Tolerant] [<CommonParameters>]
File
Select-HtmlJavaScriptConfig -Path <string> [-Name <string[]>] [-Contains] [-StartsWith] [-PropertyPath <string[]>] [-NoAppState] [-Tolerant] [<CommonParameters>]
Url
Select-HtmlJavaScriptConfig -Url <uri> [-Name <string[]>] [-Contains] [-StartsWith] [-PropertyPath <string[]>] [-NoAppState] [-Tolerant] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
DESCRIPTION
Selects JavaScript application configuration objects and framework state from inline HTML scripts.
EXAMPLES
EXAMPLE 1
Select-HtmlJavaScriptConfig -Content $html
EXAMPLE 2
Select-HtmlJavaScriptConfig -Content $html -Name window.__CONFIG__ -PropertyPath api.baseUrl
EXAMPLE 3
Select-HtmlNode -Content $html -XPath '//body' | Select-HtmlJavaScriptConfig -Name settings -Contains
PARAMETERS
-Contains
Matches variable names or full assignment paths that contain the provided Name values.
Type: SwitchParameter
Parameter Sets: Node, Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Content
HTML content to inspect.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
-HtmlNode
HtmlAgilityPack node or document to inspect.
Type: Object
Parameter Sets: Node
Aliases: Node, InputObject
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Name
Variable names or assignment paths to return. When omitted, common config and state names are searched.
Type: String[]
Parameter Sets: Node, Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NoAppState
Skips known framework app-state payloads and returns only JavaScript variable matches.
Type: SwitchParameter
Parameter Sets: Node, Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
Path to an HTML file.
Type: String
Parameter Sets: File
Aliases: File
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PropertyPath
Returns a value from a dotted property path inside the matched JavaScript object or array literal.
Type: String[]
Parameter Sets: Node, Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Proxy
Proxy server address used when downloading by URL.
Type: String
Parameter Sets: Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credentials used with the proxy server.
Type: PSCredential
Parameter Sets: Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-StartsWith
Matches variable names or full assignment paths that start with the provided Name values.
Type: SwitchParameter
Parameter Sets: Node, Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Tolerant
Enables Acornima tolerant parsing for inline script content.
Type: SwitchParameter
Parameter Sets: Node, Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
URL of an HTML page to download and inspect.
Type: Uri
Parameter Sets: Url
Aliases: Uri
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.StringSystem.Object
OUTPUTS
HtmlTinkerX.HtmlJavaScriptConfigItem
RELATED LINKS
- None