npm.io
1.2.3 • Published 8 years ago

file-base64-util

Licence
MIT
Version
1.2.3
Deps
0
Size
5 kB
Vulns
0
Weekly
0

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.

Keywords