GithubHelp home page GithubHelp logo

juliamathias / emojix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ukita/emojix

0.0 0.0 0.0 1.01 MB

Simple emoji library for Elixir ๐Ÿ’ฉ

Home Page: https://hexdocs.pm/emojix

License: MIT License

Elixir 100.00%

emojix's Introduction

Emojix ๐Ÿ’ฉ

Build Status

Simple Elixir library to help you handle emojis.

Installation

Add it to your deps list in your mix.exs

def deps do
  [
    {:emojix, "~> 0.3.1"}
  ]
end

Usage examples

iex> Emojix.all()
[
  %Emojix.Emoji{
    description: "flag: Andorra",
    hexcode: "1F1E6-1F1E9",
    id: 3577,
    shortcodes: ["flag_ad"],
    tags: ["AD", "flag"],
    unicode: "๐Ÿ‡ฆ๐Ÿ‡ฉ",
    variations: []
  },
  %Emojix.Emoji{
    description: "downcast face with sweat",
    hexcode: "1F613",
    id: 85,
    shortcodes: ["shamed"],
    tags: ["cold", "face", "sweat"],
    unicode: "๐Ÿ˜“",
    variations: []
  },
...
]
iex> Emojix.find_by_shortcode("gleeful")
%Emojix.Emoji{
  description: "grinning face",
  hexcode: "1F600",
  id: 1,
  shortcodes: ["gleeful"],
  tags: ["face", "grin"],
  unicode: "๐Ÿ˜€",
  variations: []
}
iex> Emojix.scan("Elixir is awesome!! โœŒ๐Ÿป๐Ÿ‘๐Ÿฝ")
[
  %Emojix.Emoji{
    description: "victory hand: light skin tone",
    hexcode: "270C-1F3FB",
    id: 206,
    shortcodes: ["victory_tone1"],
    tags: [],
    unicode: "โœŒ๐Ÿป",
    variations: []
  },
  %Emojix.Emoji{
    description: "thumbs up: medium skin tone",
    hexcode: "1F44D-1F3FD",
    id: 275,
    shortcodes: ["thumbsup_tone3", "+1_tone3", "yes_tone3"],
    tags: [],
    unicode: "๐Ÿ‘๐Ÿฝ",
    variations: []
  }
]

Documentation

Full API documentation is available here: https://hexdocs.pm/emojix/

Credits

Thanks for @milesj for provinding the emoji datasets.

License

MIT

emojix's People

Contributors

ukita avatar mguentner avatar pedro-skoach 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.