
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
retext-emoji
Advanced tools
retext plugin to support emoji, gemoji, and emoticons.
npm:
npm install retext-emoji
var retext = require('retext')
var emoji = require('retext-emoji')
var file = retext()
.use(emoji, {convert: 'encode'})
.processSync('I’m going to bed. :zzz:')
console.log(String(file))
Yields:
I’m going to bed. 💤
retext().use(emoji[, options])
Support emoji, gemoji, and emoticons.
options.convert
If, and how to convert ('encode'
or 'decode'
, optional).
When encode
is given, converts short-codes and emoticons to their unicode
equivalent (:heart:
and <3
to ❤️
).
When decode
is given, converts unicode emoji and emoticons to their short-code
equivalent (❤️
and <3
to :heart:
).
EmoticonNode
retext-emoji
adds a new node to nlcst:
Emoticon (Literal).
Whether emoji (❤️
), emoticon (<3
), or gemoji (:heart:
), all are classified
as EmoticonNode
s.
interface Emoticon < Symbol {
type: "EmoticonNode"
data: EmoticonData
}
interface EmoticonData {
emoji: string
names: [string]
description: string?
tags: [string]
}
retext-emoji
supports every gemoji
and every
emoticon
.
See contributing.md
in retextjs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
FAQs
retext plugin to support emoji, gemoji, and emoticons
We found that retext-emoji demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.