Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 📖🔍✋
- Host: GitHub
- URL: https://github.com/charliewilco/async-file-reader
- Owner: charliewilco
- Created: 2019-09-02T06:33:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-02T06:36:39.000Z (about 5 years ago)
- Last Synced: 2024-10-09T14:33:39.629Z (about 1 month ago)
- Topics: async, browser, typescript
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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)
```