javascript – How to access the plain text of each chapter of the EPUB file downloaded by the user

I try to access the raw text of an EPUB file uploaded by a user.

I have tried some libraries without success, most require a local file path to access the contents of the files, it seems, and I do not know how to access a temporary path.

I have access to the javascript file object because I use React-Dropzone.

Here is the documentation on an Epub library that looks perfect if I could have it read the downloaded file:

Any advice would be greatly appreciated.