Coder Social home page Coder Social logo

base-emoji's Introduction

base emoji

You have base 16, base 64, and now, base emoji.

(Output a buffer in emojis.)

example

6ecd355b90e81e72c0e37c3b4023325b20fff8c58d4200c69e4fbd550876e6fe

becomes

๐Ÿ’ก๐Ÿ’ณ๐Ÿ›„๐Ÿ—โ›ช๐Ÿ’ซโคต๏ธ๐Ÿš๐Ÿšง๐Ÿฌ๐Ÿฌ๐Ÿฆ๐Ÿ›€โžก๏ธ๐Ÿผ๐Ÿ—โฌ…๏ธ๐Ÿฅš๐Ÿ“€๐Ÿ‘ฎ๐Ÿšธ๐Ÿ”‹๐Ÿ’ฏยฉ๏ธ๐Ÿ•›๐ŸŽ‚๐Ÿ˜–๐ŸŒผ๐Ÿ”ก๐Ÿฐ๐Ÿ˜ž๐ŸŒ

api

var baseEmoji = require('base-emoji')
var buf = new Buffer('deadbeef', 'hex')
baseEmoji.toUtf8(buf)
// => '๐ŸŽฏ๐Ÿ•—๐Ÿ˜•๐Ÿฌ'
baseEmoji.toNames(buf)
// => ':dart::clock8::confused::dolphin:'
baseEmoji.toCustom(buf, function(v, emojiName, emojiData) {
  return '<img src="/img/emoji/'+emojiName+'.png" alt="'+emojiData.character+'" title="'+emojiName+'">'
})
// => '<img src="/img/emoji/dart.png" alt="๐ŸŽฏ" title="dart">...'

base-emoji's People

Contributors

pfrazee avatar ralphtheninja avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.