Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evan-moon/simple-base64

simple base64 encode/decode for nodeJS
https://github.com/evan-moon/simple-base64

Last synced: 26 days ago
JSON representation

simple base64 encode/decode for nodeJS

Awesome Lists containing this project

README

        

[npm-image]: https://img.shields.io/npm/v/simple-base64.svg
[npm-url]: https://www.npmjs.com/package/simple-base64

# simple-base64 [![npm][npm-image]][npm-url]
Simple base64 encode/decode for JavaScript

## Installation
```shell
npm install simple-base64
```

## Usage (with CommonJS)
```javascript
const base64 = require('simple-base64');

const encodedKorean = base64.encode('안녕하세요'); // -> 7JWI64WV7ZWY7IS47JqU
base64.decode(encodedKorean); // -> 안녕하세요

const encoded = base64.encode('Hello World'); // -> SGVsbG8gV29ybGQ=
base64.decode(encoded); // -> Hello World
```