emo-ji

WebJar for emo-ji

License

License

GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

emo-ji
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

emo-ji
WebJar for emo-ji
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/wbinnssmith/emo-ji

Download emo-ji

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : emojilib jar [1.0.1,2)
org.webjars.npm : object-assign jar [4.0.1,5)

Project Modules

There are no modules declared in this project.

emo-ji

An Emoji html custom element that lets you use descriptive names in place of unicode! This module is called emo-ji and that's a recommended tag name, but you can assign it however you like.

Installation

npm install --save emo-ji

Requirements

This is a vanilla web component. It assumes that Custom Elements and the Shadow DOM are available in the runtime. This means it is currently compatible with the following browsers:

Chrome logo Firefox logo Internet Explorer logo Opera logo Safari logo
43+ Nope ✘ Nope ✘ 32+ Nope ✘

If you need wider support, you can polyfill web components!

Usage

Bundle with browserify! Webpack works too. If you don't use one of these, use dist/emoji.js and EmojiElement will be set on window. Use that as the prototype when registering your element.

emo-ji does not modify your global environment as a side-effect (like HTML Imports would) and allows you to choose which custom tag name to register on your own! Since HTML imports don't allow namespacing and aliasing imports like CommonJS or ES6 do in JavaScript-land, this module embraces side-effect-free imports and lets you register the element yourself in js. It's only one line, after all.

var emoji = require('emo-ji');

document.registerElement('emo-ji', { prototype: emoji });

... and in your document:

<emo-ji type="unamused"></emo-ji>
<emo-ji type="rabbit"></emo-ji>
<emo-ji type="panda_face"></emo-ji>

<script src="bundle.js"></script>

... where bundle.js is your browserify or webpack bundle.

Screenshots

Credits

@muan's emojilib is pretty great. Any contributions there will only make other emoji things better!

(c) 2015 Will Binns-Smith. Licensed Apache 2.0

Versions

Version
1.0.4