@nlpjs/emoji

February 20, 2021 · View on GitHub

Introduction

@nlpjs/emoji is the package that adds the function removeEmojis which replaces emojis with their text equivalents.

Installing

removeEmojis is a function in the package @nlpjs/emoji, which you can install via NPM:

  npm install @nlpjs/emoji

Example of use

const { removeEmojis } = require('@nlpjs/emoji');

const actual = removeEmojis('I ❤️  ☕️! -  😯⭐️😍  ::: test : : 👍+');
console.log(actual);
// I :heart:  :coffee:! -  :hushed::star::heart_eyes:  ::: test : : :thumbsup:+