Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 575 Bytes

emoji.md

File metadata and controls

23 lines (15 loc) · 575 Bytes

@nlpjs/emoji

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:+