Skip to content

ant-js/replace-emoji

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” 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