Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yonycalsin/next-base64

base64 decoder and encoder for nextjs 🎉
https://github.com/yonycalsin/next-base64

base64-universal client-side nextjs nextjs-base64 server-side

Last synced: 3 months ago
JSON representation

base64 decoder and encoder for nextjs 🎉

Awesome Lists containing this project

README

        

# next-base64

`next-base64` is a library for `client-side` and `server-side` base64 encoding and decoding

[![CI](https://github.com/yonycalsin/next-base64/actions/workflows/main.yml/badge.svg)](https://github.com/yonycalsin/next-base64/actions/workflows/main.yml)


NPM Version


Package License


NPM Downloads


## Installation

```bash
# Using npm
npm install --save next-base64@latest

# Using yarn
yarn add next-base64@latest
```

## Usage

```ts
import nextBase64 from 'next-base64';

const base64Encoded = nextBase64.encode('Hello World');

const base64decoded = nextBase64.decode(base64Encoded);

// result
console.log(base64Encoded); // 'SGVsbG8gV29ybGQ='
console.log(base64decoded); // 'Hello World'
```

## License

`next-base64` under [License.](LICENSE)