file-base64-util

1.2.3 • Public • Published

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.

Package Sidebar

Install

npm i file-base64-util

Weekly Downloads

5

Version

1.2.3

License

MIT

Unpacked Size

4.84 kB

Total Files

11

Last publish

Collaborators

  • kallelat