Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jasonbarry/face64

Like base64, but with emoji
https://github.com/jasonbarry/face64

base64 decoding emoji encoding

Last synced: 11 days ago
JSON representation

Like base64, but with emoji

Awesome Lists containing this project

README

        

# face64

Like base64, but with emoji

- Under 700 bytes, no dependencies
- Works in node.js and the browser
- Pretty silly in general

## Installation

```js
yarn add face64
// ...
import face64 from 'face64'
```

or

```html

```

## Usage

```js
face64.encode('Jello, world!') // "πŸ˜£πŸ˜½πŸ˜¦πŸ™ƒπŸ˜²πŸ˜—πŸ˜ˆπŸ˜ΌπŸ˜πŸ˜»πŸ˜πŸ˜ΌπŸ˜πŸ˜ΊπŸ˜’πŸ˜ƒπŸ˜²πŸ˜ƒπŸ˜šπŸ™ƒπŸ˜ͺπŸ˜“πŸ˜•πŸ˜"
face64.decode('πŸ˜£πŸ˜½πŸ˜¦πŸ™ƒπŸ˜²πŸ˜—πŸ˜ˆπŸ˜ΌπŸ˜πŸ˜»πŸ˜πŸ˜ΌπŸ˜πŸ˜ΊπŸ˜’πŸ˜ƒπŸ˜²πŸ˜ƒπŸ˜šπŸ™ƒπŸ˜ͺπŸ˜“πŸ˜•πŸ˜') // "Jello, world!"

face64.auto('Jello, world!') // "πŸ˜£πŸ˜½πŸ˜¦πŸ™ƒπŸ˜²πŸ˜—πŸ˜ˆπŸ˜ΌπŸ˜πŸ˜»πŸ˜πŸ˜ΌπŸ˜πŸ˜ΊπŸ˜’πŸ˜ƒπŸ˜²πŸ˜ƒπŸ˜šπŸ™ƒπŸ˜ͺπŸ˜“πŸ˜•πŸ˜"
face64.auto('πŸ˜£πŸ˜½πŸ˜¦πŸ™ƒπŸ˜²πŸ˜—πŸ˜ˆπŸ˜ΌπŸ˜πŸ˜»πŸ˜πŸ˜ΌπŸ˜πŸ˜ΊπŸ˜’πŸ˜ƒπŸ˜²πŸ˜ƒπŸ˜šπŸ™ƒπŸ˜ͺπŸ˜“πŸ˜•πŸ˜') // "Jello, world!"
```