Socket
Socket
Sign inDemoInstall

react-twemoji

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-twemoji - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

yarn.lock

5

package.json
{
"name": "react-twemoji",
"version": "0.3.0",
"version": "0.4.0",
"description": "A React wrapper for Twemoji",
"keyword": [
"emoji",
"react",

@@ -65,3 +66,3 @@ "twemoji"

"prop-types": "^15.7.2",
"twemoji": "^13.0.1"
"twemoji": "13.1.0"
},

@@ -68,0 +69,0 @@ "peerDependencies": {

6

README.md

@@ -19,3 +19,3 @@ # react-twemoji

Simply use it to wrap your emotional content. Set `options` prop to pass options to `twemoji.parse`.
Simply use it to wrap your emotional content. Set the `options` prop to pass options to `twemoji.parse`.

@@ -30,3 +30,3 @@ ```jsx

It outputs following HTML to DOM,
It outputs the following HTML to DOM,

@@ -49,3 +49,3 @@ ```html

| `options` | `object` | `undefined` | `twemoji.parse` options. |
| `noWrapper` | `boolean` | `false` | When it is `true`, `Twemoji` will not render a wrapping element (with `tag`) to contain children. Note that since `twemoji.parse` needs an DOM element reference, any direct pure text child of `Twemoji` is not parsed when `noWrapper` is `true`. E.g. `foo` in `<Twemoji noWrapper={true}>foo<p>bar</p></Twmoji>` is not parsed. |
| `noWrapper` | `boolean` | `false` | When it is `true`, `Twemoji` will not render a wrapping element (with `tag`) to contain its children. Note that since `twemoji.parse` needs a DOM element reference, any direct pure text child of `Twemoji` is not parsed when `noWrapper` is `true`. E.g. `foo` in `<Twemoji noWrapper={true}>foo<p>bar</p></Twemoji>` is not parsed. |
| `tag` | `string` | `div` | The tag of the wrapping element. This option is ignored when `noWrapper` is `true`. |

@@ -52,0 +52,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc