npm.io
1.0.3 • Published 8 years ago

emoticons-converter

Licence
MIT
Version
1.0.3
Deps
3
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

Emoticons Converter

A library for convert emoticons to string and otherwise

Install

npm install emoticons-converter --save

Usage

Convert emoticon to string
import { emoticonToString } from 'emoticons-converter'

let name = emoticonToString('Kevin Hermawan 😎')
console.log(name) // Kevin Hermawan [SMILING FACE WITH SUNGLASSES]
Convert string to emoticon
import { stringToEmoticon } from 'emoticons-converter'

let name = stringToEmoticon('Kevin Hermawan [SMILING FACE WITH SUNGLASSES]')
console.log(name) // Kevin Hermawan 😎

Keywords