replace-emoji
v1.1.3-0
Published
๐ Replace emojis from string or string[]
Downloads
243
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
*/