Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 🎉
- Host: GitHub
- URL: https://github.com/yonycalsin/next-base64
- Owner: yonycalsin
- License: mit
- Created: 2022-04-30T23:23:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-17T01:05:40.000Z (6 months ago)
- Last Synced: 2024-09-29T12:40:57.653Z (3 months ago)
- Topics: base64-universal, client-side, nextjs, nextjs-base64, server-side
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/next-base64
- Size: 322 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
## 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)