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

Dependentsโ€‚(0)

Package Sidebar

Install

npm i replace-emoji

Weekly Downloads

84

Version

1.1.3-0

License

MIT

Unpacked Size

5.62 kB

Total Files

7

Last publish

Collaborators

  • xrkffgg