u-wave-web-emojione
EmojiOne emoji for the üWave web client chat.
Last updated 3 years ago by goto-bus-stop .
(MIT AND CC-BY-4.0) · Original npm · Tarball · package.json
$ cnpm install u-wave-web-emojione 
SYNC missed versions from official npm registry.

u-wave-web-emojione

EmojiOne emoji for the üWave web client chat.

Screenshot

Installation

npm install --save u-wave-web-emojione

Alternatively, use the üWave CLI.

Usage

Adding u-wave-web-emojione to your instance is a three-step process:

import express from 'express';
import createWebClient from 'u-wave-web';
// 1. Add this import ????
import emojione from 'u-wave-web-emojione';

const app = express();
// ...
// (Your application setup here)
// ...

// 2. Add this middleware:
app.use('/assets/emoji', emojione.middleware());
app.use(createWebClient(uw, {
  // 3. Add the emoji list:
  emoji: emojione.emoji,
}));

If you are already using other emoji sets, you can use multiple by adding more router handlers and merging the emoji lists.

import serveStatic from 'serve-static';
app.use('/assets/emoji', serveStatic('./my-custom-emoji'));
app.use('/assets/emoji', emojione.middleware());
app.use(createWebClient(uw, {
  emoji: {
    ...emojione.emoji,
    ...myCustomEmoji
  },
}));

License

EmojiOne emoji images are available under the EmojiOne Free License.

Everything else in this repository is available under the MIT license.

Current Tags

  • 2.0.1                                ...           latest (3 years ago)

3 Versions

  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |