smilemoji

Easily replace traditional ASCII smileys by their emoji counterpart

Usage no npm install needed!

<script type="module">
  import smilemoji from 'https://cdn.skypack.dev/smilemoji';
</script>

README

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.

import smilemoji from 'smilemoji';
// Alternatively you can use a named import
// import {replace} from 'smilemoji';

const input = "Hello John :)";
const result = smilemoji(input);
// result: "Hello John 😀"