# file-base64

> encode a file to base64 string or decode a base64 string to file.

Latest version **1.0.0** (published 2015-11-07) · MIT license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2015-11-07 |
| First published | 2015-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | forsigner |
| Maintainers | forsigner |
| Keywords | file, base64, node, stream |

## Links

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

## Dependencies (1)

- [into-stream](https://npm.io/package/into-stream.md) ^2.0.0

## 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.0.0 (latest) — 2015-11-07

## README

# file-base64
- Encode a file to a base64 string
- Dncode a base64 string to a file


### Install

``` bash
$ npm install file-base64 --save
```

## Usage

``` js
var base64 = require('file-base64');

base64.encode('text.txt', function(err, base64String) {
  console.log(base64String);
});

var base64String = 'swesh523sfsfgwg';
base64.decode(base64String, 'text.new.txt' function(err, output) {
  console.log('success');
});
```

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