nizaroni / emoji-strip Goto Github PK
View Code? Open in Web Editor NEWStrip emoji from a string in Node.js and browsers.
License: ISC License
Strip emoji from a string in Node.js and browsers.
License: ISC License
Hello everyone!
I am using your library but I have an issue:
test\u26A1**\uFE0F** (test⚡️)
This emoji is not deleted.
When I stip the string I get this: test**\uFE0F**
Could you help me?
Your library imports emoji-regex but with the npm caret and so only patch versions will automatically upgrade. However, emoji-regex updates major versions regularly and so when people install this library, what they really should do instead is string.replace(require("emoji-regex"), "") because then they'd get the latest updates from emoji-regex and not a 10 year old package.
Running both npm install emoji-strip
and npm install --save emoji-strip
only installed the emoji-regex
module on my machine, not emoji-strip
. Not sure if others have encountered this issue as well.
For example, the following string contains emoji modifiers (http://emojipedia.org/skin-tone-modifiers/):
Just casually bumped into @andyroddick in the commentary box @bbctennis @Wimbledon 👍🏻👍🏻
emoji-strip currently does not remove these from strings.
I would love to know how to make this work for browser / frontend
var name= "🇧🇷Brasil!!!🇧🇷"
name = emojiStrip(name);
console.log(name);
// Returns "🇧🇷Brasil!!!🇧🇷"
stable version was released. What about to update it? :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.