Skip to content

yummies/file

Description

Browser File helpers: reading contents as Base64 data URLs or plain text with optional encoding. They wrap FileReader in promises so async flows stay linear and errors surface as rejections. Handy for uploads, import wizards, and client-side parsing without extra libraries.

Usage

ts
import { getBase64FromFile } from "yummies/file";

Released under the MIT License.