file-base64-util
v1.2.3
Published
Convert any file to Base64 string
Downloads
12
Readme
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.