emojis

WebJar for emojis

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

emojis
Last Version

Last Version

1.0.10
Release Date

Release Date

Type

Type

jar
Description

Description

emojis
WebJar for emojis
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/tallesl/node-emojis

Download emojis

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/emojis/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>emojis</artifactId>
    <version>1.0.10</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/emojis/
implementation 'org.webjars.npm:emojis:1.0.10'
// https://jarcasting.com/artifacts/org.webjars.npm/emojis/
implementation ("org.webjars.npm:emojis:1.0.10")
'org.webjars.npm:emojis:jar:1.0.10'
<dependency org="org.webjars.npm" name="emojis" rev="1.0.10">
  <artifact name="emojis" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='emojis', version='1.0.10')
)
libraryDependencies += "org.webjars.npm" % "emojis" % "1.0.10"
[org.webjars.npm/emojis "1.0.10"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

emojis

Replaces emoji codes (like :smiley:) for emoji images (like ๐Ÿ˜ƒ ) or unicode characters (like ๐Ÿ˜ƒ ).

Usage

$ npm install emojis
(...)
$ node
> let emojis = require('emojis')
undefined
> emojis.unicode('I :heart: you!')
'I โค๏ธ you!'
> emojis.html('I :heart: you!', 'http://example.org/images/')
'I <img class="emoji" width="20" height="20" src="http://example.org/images/heart.png" alt="heart"> you!'

Emoji codes and images

The emoji codes used are the ones on Emoji cheat sheet. Their images are also provided here for you to use (images.zip), but consider its copyright.

Aligning the HTML image

One way to align the emoji image within the text would be using align="absmiddle", just as GitHub does, but I didn't do it because it's obsolete.

A suggestion is to use the following CSS:

.emoji {
  margin-bottom: .25em;
  vertical-align: middle;
}

Versions

Version
1.0.10