file-to-base64
Converts any given local file to base64 string.
Installation
npm install file-to-base64 --save
Usage
import { fileToBase64 } from "fileToBase64";
const base64 = fileToBase64(filename); // returns base64 if valid file, otherwise throws an exception
changes
Please see CHANGELOG.md
license
file-to-base64 is freely distributable under the terms of the MIT license.