https://github.com/ant-js/replace-emoji
🔍 Replace emojis from string or string[]
https://github.com/ant-js/replace-emoji
emoji replace tools
Last synced: 3 months ago
JSON representation
🔍 Replace emojis from string or string[]
- Host: GitHub
- URL: https://github.com/ant-js/replace-emoji
- Owner: ant-js
- License: mit
- Created: 2021-05-10T15:58:59.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T05:08:37.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T18:04:06.721Z (3 months ago)
- Topics: emoji, replace, tools
- Language: TypeScript
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 🔍 replace-emoji
🔍 Replace emojis from string or string[]
[](https://www.npmjs.com/package/replace-emoji)
## Usage
```bash
npm i replace-emoji
# or
yarn add replace-emoji
``````js
import replaceEmoji from 'replace-emoji';
// or
const { replaceEmoji } = require('replace-emoji');replaceEmoji('🤖123'); // => 123
replaceEmoji('🤖123', '6'); // => 6123
replaceEmoji(['🤖1', '🤖2']); // => ['1', '2']
``````js
/**
*
* @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](./CHANGELOG.md)
## LICENSE
[MIT](.LICENSE)