@charliewilco/async-file-reader

Simple function to use FileReader API as async.

Usage no npm install needed!

<script type="module">
  import charliewilcoAsyncFileReader from 'https://cdn.skypack.dev/@charliewilco/async-file-reader';
</script>

README

async-file-reader

Simple function to use FileReader API as async.

yarn add @charliewilco/async-file-reader

Usage:

import asyncFileReader from "@charliewilco/async-file-reader"

const contents: string | ArrayBuffer  = await asyncFileReader(file)