New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

emojik

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emojik

Emoji pack to JavaScript

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Emoji for JavaScript

I really a lot of use emoji. And I'm tired copy-past them from the messengers. After I'm created this module, which the solved a problem. I hope, this help you too.

Installation

$ npm install emojik

Example

ES5

// Import module
const Emojik = require('emojik');

// From path
console.log(Emojik.goblin.icon());

// Or from get() function
console.log(Emojik.get('goblin'));

// result: 👺

ES6

// Import module
import Emojik from 'emojik';

// From path
console.log(Emojik.goblin.icon());

// Or from get() function
console.log(Emojik.get('goblin'));

// result: 👺

FAQ

How use smiles with need colors?

// From path
console.log(Emojik.ok_hand.icon('light'));

// Or from get() function
console.log(Emojik.get('ok hand', 'light'));

// result: 👌🏻

Available colors

{ "light", "medium-light", "medium", "medium-dark", "dark" }

What happens, if I paste to get() function don't correct name?

// You can paste names as you wish

// So
console.log(Emojik.get('flexed biceps'));

// Or so..
console.log(Emojik.get('FLEXED_BICEPS'));

// Or so....
console.log(Emojik.get(':::::::flexed+biceps::::::::'));

// result will be the same
// 💪

Keywords

emoji

FAQs

Package last updated on 13 Jan 2021

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