Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/charliewilco/async-file-reader

awaitable FileReader 📖🔍✋
https://github.com/charliewilco/async-file-reader

async browser typescript

Last synced: about 1 month ago
JSON representation

awaitable FileReader 📖🔍✋

Awesome Lists containing this project

README

        

# async-file-reader

Simple function to use [FileReader API](https://developer.mozilla.org/en-US/docs/Web/API/FileReader) as async.

```sh
yarn add @charliewilco/async-file-reader
```

Usage:

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

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