npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

satteri-emoji

v0.1.2

Published

Satteri plugin to replace emoji shortcodes and emoticons in Markdown text.

Readme

satteri-emoji

npm License Coverage Lint Types Actions

Satteri plugin to replace emoji shortcodes and, optionally, ASCII emoticons in Markdown text.

Inspired by remark-emoji, but built for Satteri's JavaScript plugin API and powered by generated emojibase-data lookup tables.

Installation

npm install satteri-emoji

Usage

import { markdownToHtml } from "satteri";
import { satteriEmoji } from "satteri-emoji";

const html = markdownToHtml("Hello :waving_hand:", {
  mdastPlugins: [satteriEmoji()],
}).html;

// <p>Hello <span class="emoji" role="img" aria-label="waving hand">👋</span></p>

GitHub-style names are available by opting into the GitHub shortcode dataset:

satteriEmoji({ shortcodes: ["github"] });

Options

| Option | Type | Default | Description | | ------------ | -------------------------- | ---------- | ----------------------------------------------------------------- | | class | string | "emoji" | CSS class on generated spans. Empty string omits the attribute. | | emoticons | boolean | false | Replace ASCII emoticons like :-) and :D. | | hidden | boolean | false | Add aria-hidden="true" to generated spans. | | label | boolean | true | Add role="img" and aria-label to generated spans. | | locale | Locale | "en" | Locale for accessible labels. | | override | Record<string, Override> | — | Direct shortcode replacements; take precedence over all datasets. | | shortcodes | Catalog[] | ["cldr"] | Shortcode datasets to enable. |

Built-in datasets: cldr, cldr-native, emojibase, emojibase-legacy, github, iamcal, joypixels.

Built-in locales: bn, da, de, en, en-gb, es, es-mx, et, fi, fr, hi, hu, it, ja, ko, lt, ms, nb, nl, pl, pt, ru, sv, th, uk, vi, zh, zh-hant.

Override is { value: string; label?: string }. When label is omitted the shortcode key is used as the accessible label.

Development

git clone https://github.com/igor-koop/satteri-emoji
cd satteri-emoji
npm install

| Script | Description | | --------------- | ---------------------------------------------------- | | npm run data | Regenerate the emoji registry from emojibase-data. | | npm run build | Compile ESM and type declarations into dist/. | | npm test | Run the Vitest test suite. | | npm run cov | Run tests with V8 coverage. | | npm run check | Format check, lint, and TypeScript typecheck. | | npm run fmt | Auto-format with oxfmt. |

The package pre-generates src/registry.ts from emojibase-data so that runtime work is limited to a few lookups per plugin call rather than parsing the full Emojibase JSON on each page.

License

MIT