replace-emoji

🔍 Replace emojis from string or string[]

Usage no npm install needed!

<script type="module">
  import replaceEmoji from 'https://cdn.skypack.dev/replace-emoji';
</script>

README

🔍 replace-emoji

🔍 Replace emojis from string or string[]

Usage

npm i replace-emoji
# or
yarn add replace-emoji
import replaceEmoji from 'replace-emoji';
// or
const { replaceEmoji } = require('replace-emoji');

replaceEmoji('🤖123'); // => 123
replaceEmoji('🤖123', '6'); // => 6123
replaceEmoji(['🤖1', '🤖2']); // => ['1', '2']
/**
 *
 * @param s The string or strings to be replaced
 * @param r The content to be replaced
 * @param reg Customize RegExp
 * @returns Replaced result
 */

Changelog

CHANGELOG

LICENSE

MIT