npm install emoji-extract-sentiment --save
require ('emoji-extract-sentiment');
const text = "😭 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vulputate sem non vulputate varius.";
const result = emojiSentiment(text);
[ { emoji: '😭',
code: ':sob:',
utf16: '\\uD83D\\uDE2D',
unicode: '1f62d',
sentiment: -0.093 } ]
Close to you local development enviornment:
npm test