New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

retext-emoji

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

retext-emoji - npm Package Compare versions

Comparing version 3.0.0 to 4.0.0

3

index.js

@@ -98,3 +98,4 @@ 'use strict';

if (!data) {
data = node.data = {};
data = {};
node.data = data;
}

@@ -101,0 +102,0 @@

{
"name": "retext-emoji",
"version": "3.0.0",
"version": "4.0.0",
"description": "Emoji, gemoji, and emoticons with retext",

@@ -22,4 +22,4 @@ "license": "MIT",

"dependencies": {
"emoticon": "^2.0.0",
"gemoji": "^2.0.1",
"emoticon": "^3.1.0",
"gemoji": "^4.2.0",
"nlcst-affix-emoticon-modifier": "^1.0.0",

@@ -34,8 +34,8 @@ "nlcst-emoji-modifier": "^1.0.0",

"esmangle": "^1.0.1",
"nyc": "^10.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^2.0.0",
"nyc": "^11.0.0",
"remark-cli": "^4.0.0",
"remark-preset-wooorm": "^3.0.0",
"retext": "^5.0.0",
"tape": "^4.0.0",
"xo": "^0.17.1"
"xo": "^0.18.0"
},

@@ -60,2 +60,3 @@ "scripts": {

"space": true,
"esnext": false,
"rules": {

@@ -69,4 +70,6 @@ "guard-for-in": "off"

"remarkConfig": {
"plugins": ["preset-wooorm"]
"plugins": [
"preset-wooorm"
]
}
}

@@ -38,13 +38,19 @@ # retext-emoji [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]

###### `options`
##### `options`
* `convert` (`'encode'` or `'decode'`, optional)
— When `encode`, converts short-codes and emoticons to their
unicode equivalent (`:heart:` and `<3` to `❤️`); When `decode`,
converts unicode emoji and emoticons to their short-code equivalent
(`❤️` and `<3` to `:heart:`).
Optional configuration.
###### `options.convert`
How to convert (`'encode'` or `'decode'`, optional).
When `encode`, converts short-codes and emoticons to their unicode equivalent
(`:heart:` and `<3` to `❤️`).
When `decode`, converts unicode emoji and emoticons to their short-code
equivalent (`❤️` and `<3` to `:heart:`).
### `EmoticonNode`
**retext-emoji** adds a new node to [NLCST][]: `Emoticon` ([Symbol][]).
`retext-emoji` adds a new node to [NLCST][]: `Emoticon` ([Symbol][]).

@@ -69,4 +75,4 @@ Whether emoji (`❤️`), emoticon (`<3`), or gemoji (`:heart:`), all are

**retext-emoji** supports every [`wooorm/gemoji`][gemoji] and every
[`wooorm/emoticon`][emoticon].
`retext-emoji` supports every [`gemoji`][gemoji] and every
[`emoticon`][emoticon].

@@ -73,0 +79,0 @@ ## License

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