Skip to content

jasonbarry/face64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

face64

Like base64, but with emoji

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

Installation

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

or

  <script src="https://unpkg.com/face64"></script>

Usage

  face64.encode('Jello, world!') // "😣😽😦🙃😲😗😈😼😝😻😝😼😝😺😒😃😲😃😚🙃😪😓😕😍"
  face64.decode('😣😽😦🙃😲😗😈😼😝😻😝😼😝😺😒😃😲😃😚🙃😪😓😕😍') // "Jello, world!"

  face64.auto('Jello, world!')   // "😣😽😦🙃😲😗😈😼😝😻😝😼😝😺😒😃😲😃😚🙃😪😓😕😍"
  face64.auto('😣😽😦🙃😲😗😈😼😝😻😝😼😝😺😒😃😲😃😚🙃😪😓😕😍')   // "Jello, world!"