Functions/Get-Puppeteer_LogVariable.ps1
<#
.SYNOPSIS This function returns the JS code to output a variable to the console. #> function Get-Puppeteer_LogVariable { [CmdletBinding(PositionalBinding=$true)] [OutputType([String])] param ( # The name of the variable to log. [Parameter(Mandatory=$true)] [ValidateNotNullOrEmpty()] [String]$variableName ) return "console.log($($variableName));" } |