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

quill-emoji-new

v1.2.0

Published

Modern emoji modules for Quill 1.x and 2.x with TypeScript, dual ESM/CJS output, and native Unicode rendering.

Downloads

80

Readme

quill-emoji-new

Emoji modules for Quill with modern TypeScript builds and Quill 1.x/2.x support.

quill-emoji-new is an updated fork of the original quill-emoji, focused on modern packaging, better configurability, and maintainable defaults.

Open source contributions are welcome.

Installation

# npm
npm install quill-emoji-new

# pnpm
pnpm add quill-emoji-new

# yarn
yarn add quill-emoji-new

# bun
bun add quill-emoji-new

Version Support

  • quill-emoji-new -> Quill 2.x
  • quill-emoji-new/v1 -> Quill 1.x
  • quill-emoji-new/style.css -> shared stylesheet

Quick Start

Quill 2.x

import Quill from "quill";
import { registerAliases, registerQuillEmojiV2 } from "quill-emoji-new";
import "quill-emoji-new/style.css";

registerAliases({
  grinning: "grinning_face",
  smile: "grinning_face_with_smiling_eyes"
});
registerQuillEmojiV2(Quill);

const quill = new Quill("#editor", {
  theme: "snow",
  modules: {
    toolbar: {
      container: [["bold", "italic"], ["emoji"]],
      handlers: { emoji: () => {} }
    },
    "emoji/toolbar": true,
    "emoji/shortname": true,
    "emoji/textarea": true
  }
});

Quill 1.x

import Quill from "quill";
import { registerQuillEmojiV1 } from "quill-emoji-new/v1";
import "quill-emoji-new/style.css";

registerQuillEmojiV1(Quill);

Features

  • emoji/toolbar picker module
  • emoji/shortname inline suggestions (: trigger)
  • emoji/textarea quick insert module
  • optional emoticon conversion (:), :-), <3, etc.)
  • custom emoji extension (customEmojis)
  • full dataset override (emojis)
  • optional fallback image rendering (forceFallbackImages)
  • programmatic command helper: setEmoji(quill, shortcode)
  • exported search/data utilities

API

Register

  • registerQuillEmojiV2(Quill, options?)
  • registerQuillEmojiV1(Quill, options?)
  • registerAliases(aliases)

Command

  • setEmoji(quill, shortcode): boolean

Data & Search

  • EMOJI_DATA
  • EMOJI_GROUPS
  • emojiById
  • emojiByShortcode
  • getEmojiByShortcode(shortcode)
  • registerAliases(aliases)
  • EmojiSearch

Configuration

Top-level:

  • emojis?: EmojiValue[]
  • customEmojis?: EmojiValue[]
  • forceFallbackImages?: boolean
  • legacyAliases?: Record<string, string> (applied by registerQuillEmojiV2)
  • modules?: { toolbar?, shortname?, textarea? }

legacyAliases maps legacy shortcodes to canonical emoji ids. Unknown ids are ignored and existing shortcodes are never overridden.

emoji/toolbar:

  • buttonIcon?: string
  • buttonAriaLabel?: string
  • searchPlaceholder?: string
  • pickerClassName?: string
  • emojis?: EmojiValue[]
  • customEmojis?: EmojiValue[]
  • maxRecent?: number
  • storageKey?: string

emoji/shortname:

  • minChars?: number
  • maxResults?: number
  • showSuggestionsOnColon?: boolean
  • enableEmoticons?: boolean
  • emoticonMap?: Record<string, string>
  • emojis?: EmojiValue[]
  • customEmojis?: EmojiValue[]
  • onOpen?: () => void
  • onClose?: () => void
  • onSelect?: (shortcode: string) => void

emoji/textarea:

  • buttonLabel?: string
  • emojis?: EmojiValue[]
  • customEmojis?: EmojiValue[]

Updated vs Original

Original quill-emoji package:

  • primarily Quill 1.x-era setup
  • legacy JS/webpack toolchain
  • old module keys (emoji-toolbar, emoji-shortname, emoji-textarea)

quill-emoji-new:

  • Quill 2.x default + Quill 1.x compatibility entry
  • TypeScript + ESM/CJS/type declarations
  • modern module keys:
    • emoji/toolbar
    • emoji/shortname
    • emoji/textarea
  • expanded runtime customization and data controls

Security Note

quill currently has an upstream low-severity advisory (GHSA-v3m3-f69x-jf25) with no patched release published yet. Sanitize editor-generated HTML at your output/storage boundaries.

Development

# choose one package manager
npm install
npm run ci

# or
pnpm install
pnpm run ci

# or
yarn install
yarn ci

Contributing

Thanks for helping improve quill-emoji-new.

Ways to contribute

  • report bugs and edge cases
  • propose features and API improvements
  • improve docs and examples
  • submit tests and implementation fixes

Local setup

# pick your preferred package manager
pnpm install
pnpm run ci

Pull request checklist

  • keep changes focused and include tests when behavior changes
  • run pnpm run ci (or your equivalent npm/yarn commands) before opening a PR
  • for user-facing changes, add a changeset:
pnpm changeset
  • commit the generated .changeset/*.md file with your branch changes

Attribution