Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
emoji-panel
Advanced tools
Add panel picker for emojis with different types of sets on your website. http://TimeToKnow.github.io/emoji-panel/
Blazing fast emoji panel (3ms creation)
Create an emoji panel by one line, no akward dependencies, no frameworks using the data from emoji-data.
Install the package either by using npm install emoji-panel
or bower install emoji-panel
.
// es5
var EmojiPanel = require('emoji-panel');
// es6
import EmojiPanel from 'emoji-panel';
new EmojiPanel(element, [options])
Name | Type | isRequired | Description |
---|---|---|---|
element | Object (node element) | :o: | Node element to create the panel into (preferbly a block) |
options | Object | :x: | Some added options that can be passed at creation |
Name | Type | Default | Description |
---|---|---|---|
onClick | Function | Callback of clicking an emoji, will return object with index (of the emoji-data array), and unified | |
animationDuration | Number | 300 | Duration in ms of the animation between categories |
new EmojiPanel(document.getElementById('emoji-panel-container'), {
onClick: function(emoji) {
alert(emoji.unified);
}
});
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 -
lib
(for npm) and dist
(for bower) folders.package.json
and bower.json
(by npm run patch
).gh-pages
branch (demo site)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
FAQs
Add panel picker for emojis with different types of sets on your website. http://TimeToKnow.github.io/emoji-panel/
The npm package emoji-panel receives a total of 61 weekly downloads. As such, emoji-panel popularity was classified as not popular.
We found that emoji-panel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.