Skip to content

getTextFromFile()

Reads a file as text using the provided encoding.

Example:

ts
const text = await getTextFromFile(file, 'utf-8');

Released under the MIT License.