Smilemoji :) => 😀
Easily replace traditional ASCII smileys by their emoji counterpart
Install
Install the pakcage with npm.
npm i smilemoji
Usage
The package exposes a single function that will replace most ASCII style emoticons with their emoji equivalent.
;// Alternatively you can use a named import// import {replace} from 'smilemoji'; const input = "Hello John :)";const result = ;// result: "Hello John 😀"