0.0.4 • Published 4 years ago

smilemoji v0.0.4

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

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 😀"