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