Modules.psm1
<#
.SYNOPSIS This function returns the JS code line to import puppeteer. #> function Get-ImportPuppeteerCode { return "const puppeteer = require('puppeteer');" } <# .SYNOPSIS This function returns the JS code line to import password-prompt. #> function Get-ImportPasswordPromptCode { return "const prompt = require('password-prompt');" } <# .SYNOPSIS This function returns the JS code line to import url. #> function Get-ImportUrlCode { return "const { URL } = require('url');" } <# .SYNOPSIS This function returns the JS code line to import util. #> function Get-ImportUtilCode { return "const util = require('util');" } |