# file-base64-util

> Convert any file to Base64 string

Latest version **1.2.3** (published 2018-11-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-base64-util
pnpm add file-base64-util
yarn add file-base64-util
bun add file-base64-util
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2018-11-02 |
| First published | 2018-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Timo Kallela |
| Maintainers | kallelat |
| Keywords | file, base64, string, convert |

## Links

- npm: https://www.npmjs.com/package/file-base64-util
- Repository: https://github.com/kallelat/file-to-base64
- Homepage: https://github.com/kallelat/file-to-base64#readme
- Issues: https://github.com/kallelat/file-to-base64/issues
- npm.io page: https://npm.io/package/file-base64-util

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.2.3 (latest) — 2018-11-02
- 1.2.2 — 2018-10-30
- 1.2.1 — 2018-10-29
- 1.1.0 — 2018-10-29
- 1.0.1 — 2018-10-29

## 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](https://github.com/kallelat/file-to-base64/blob/master/CHANGELOG.MD)

## license

file-to-base64 is freely distributable under the terms of the [MIT license](https://github.com/kallelat/file-to-base64/blob/master/LICENSE).

---
_Source: https://npm.io/package/file-base64-util · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
