emoji-replace
Replace text-based emoticons with emojis
Last updated 5 years ago by nguru .
MIT · Original npm · Tarball · package.json
$ cnpm install emoji-replace 
SYNC missed versions from official npm registry.

emoji-replace

Replace text-based emoticons with emojis

Start with NPM: npm install --save emoji-replace


var emoji_replace = require('emoji-replace');

//the string containing emoticons
var str = 'When a boy winks at you :girl: fear not, ;-) back and give him a broad :-)';

//now some emoji replacements.
var str = emoji_replace(str);

console.log(str); // >> When a boy winks at you � fear not, � back and give him a broad �


Current Tags

  • 1.0.1                                ...           latest (5 years ago)

2 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |