This is a simple wrapper for the FileReader API. It allows converting a Blob (and therefore a File as well) to either a plain text string, a data URL or an ArrayBuffer with a nice and clean Promise API.
This is the TypeScript signature of the readBlob function:
/**
* Read a blob or file and convert it to another data type