Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 730 Bytes

README.md

File metadata and controls

41 lines (30 loc) · 730 Bytes

🔍 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