files¶
- readFile(fileName)¶
Read a local file.
- Arguments:
fileName (string) – The file path.
- Returns:
Promise.<unknown> – A promise with the file contents.
- readHTTPSFile(url)¶
Read a remote file using HTTPS.
- Arguments:
url (string) – The remote URL.
- Returns:
Promise.<string> – A promise with the file contents.