Socket
Socket
Sign inDemoInstall

emoji-panel

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emoji-panel

Add panel picker for emojis with different types of sets on your website. http://TimeToKnow.github.io/emoji-panel/


Version published
Maintainers
2
Created
Source

Emoji panel

Build Status Coverage Status npm version

Blazing fast emoji panel (3ms creation)

Create an emoji panel by one line, no akward dependencies, no frameworks using the data from emoji-data.

Demo

Try it out

Installation

Install the package either by using npm install emoji-panel or bower install emoji-panel.

Usage

  • for npm users you need to import first -
// es5
var EmojiPanel = require('emoji-panel');
// es6
import EmojiPanel from 'emoji-panel';
  • Create
new EmojiPanel(element, [options])
  • Params
NameTypeisRequiredDescription
elementObject (node element):o:Node element to create the panel into (preferbly a block)
optionsObject:x:Some added options that can be passed at creation
  • Options
NameTypeDefaultDescription
onClickFunctionCallback of clicking an emoji, will return object with index (of the emoji-data array), and unified
animationDurationNumber300Duration in ms of the animation between categories
  • Example
new EmojiPanel(document.getElementById('emoji-panel-container'), {
  onClick: function(emoji) {
    alert(emoji.unified);
  }
});

Development

  • Clone the repo

  • npm start for development server, serving on localhost:8080.
    All changes will trigger hot reload, though absurd files will not and you will need to stop and start the server

  • After making a few commits you can deploy and make sure you don't have any uncommited changes beforehand -
    just run npm run deploy which does -

    • Creates lib (for npm) and dist (for bower) folders.
    • bumps package.json and bower.json (by npm run patch).
    • Commits these changes
    • Create a git tag
    • Merge to gh-pages branch (demo site)
    • push tags
    • npm publish (bower publishes or git changes)
    • push changes

    If you want to bump not by patch, you can set enviroment variable BUMP like so -
    BUMP=major npm run deploy. read more about npm version here

Keywords

FAQs

Package last updated on 08 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc