replace-emoji
TypeScript icon, indicating that this package has built-in type declarations

1.1.3-0Β β€’Β PublicΒ β€’Β Published

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

Readme

Keywords

Package Sidebar

Install

npm i replace-emoji

Weekly Downloads

29

Version

1.1.3-0

License

MIT

Unpacked Size

5.62 kB

Total Files

7

Last publish

Collaborators

  • xrkffgg