# nodejs-base64-encode

> Simple Node Js Package For Encode Decode A Given String

Latest version **1.1.0** (published 2020-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodejs-base64-encode
pnpm add nodejs-base64-encode
yarn add nodejs-base64-encode
bun add nodejs-base64-encode
```

## 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.1.0 |
| Published | 2020-02-16 |
| First published | 2016-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Praveen Punniyamoorthy |
| Maintainers | praveencrony |
| Keywords | encode, decode, base64 encode, base64 decode, base64 encode decode, nodejs base64, nodejs base64 encode, nodejs base64 decode, nodejs string encode decode |

## Links

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

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-02-16
- 0.0.2 — 2016-12-27
- 0.0.1 — 2016-12-27

## README

Simple Node Js Package For Encode Decode a Given String
===============================================

[![NPM](https://nodei.co/npm/nodejs-base64-encode.png)](https://nodei.co/npm/nodejs-base64-encode/)

## Installation

```bash
$ npm install nodejs-base64-encode
```

## Examples

**For Encode a String**

    const encode = require('nodejs-base64-encode');

    console.log(encode.encode('npm world', 'base64'));

    prints: bnBtIHdvcmxk

**For Decode a String**

    const encode = require('nodejs-base64-encode');

    console.log(encode.decode('bnBtIHdvcmxk', 'base64'));

    prints: npm world

**The possible encoding types are**

- ascii
- utf8
- ucs2
- base64
- binary
- hex
- utf8

[This Package Is Under The MIT License](https://raw.githubusercontent.com/praveenp30/nodejs-base64-encode/master/LICENSE.txt)

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