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

@vaebe/quill-emoji

v0.0.7

Published

这是一个为 Quill 2.0 编辑器开发的表情符号模块,使用 emoji-mart 作为表情选择器。

Downloads

10

Readme

Quill Emoji Module

这是一个为 Quill 2.0 编辑器开发的表情符号模块,使用 emoji-mart 作为表情选择器。

特性

  • ✨ 完全支持 Quill 2.0
  • 🎨 使用 emoji-mart 作为表情选择器 UI
  • 📱 响应式设计,适配移动设备
  • 🔄 多种表情选择方式
  • 🎭 可自定义主题和样式
  • 🔧 使用 TypeScript 开发

安装

npm install @vaebe/quill-emoji emoji-mart
# 或
yarn add @vaebe/quill-emoji emoji-mart
# 或
pnpm add @vaebe/quill-emoji emoji-mart

使用方法

基本用法

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/quill.snow.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/quill.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser.min.js"></script>
<script src="path/to/quill-emoji.js"></script>

<div id="editor"></div>

<script>
  const quill = new Quill('#editor', {
    theme: 'snow',
    modules: {
      toolbar: {
        container: [
          ['bold', 'italic', 'underline'],
          ['emoji']
        ]
      },
      emoji: {
        // 配置选项
        theme: 'light',
        locale: 'zh',
        set: 'native'
      }
    }
  });
</script>

使用 ES 模块

import QuillEmojiModule from '@vaebe/quill-emoji'
import Quill from 'quill'

// 注册模块
Quill.register('modules/emoji', QuillEmojiModule)

const quill = new Quill('#editor', {
  // 配置...
  modules: {
    // ...
    emoji: {
      // 配置选项
    }
  }
})

配置选项

| 选项 | 类型 | 默认值 | 描述 | |------|------|--------|------| | theme | string | 'light' | emoji-mart 主题,可选 'light' 或 'dark' | | locale | string | 'zh' | 语言设置 | | set | string | 'native' | 表情集,可选 'native', 'apple', 'google', 'twitter', 'facebook' | | skinTonePosition | string | 'none' | 肤色选择器位置 | | previewPosition | string | 'bottom' | 预览位置 | | searchPosition | string | 'sticky' | 搜索框位置 | | categories | string[] | ['frequent', ...] | 要显示的分类 | | maxFrequentRows | number | 2 | 常用表情的最大行数 | | perLine | number | 8 | 每行显示的表情数量 | | navPosition | string | 'top' | 导航栏位置 | | noCountryFlags | boolean | false | 是否隐藏国旗表情 | | dynamicWidth | boolean | true | 是否使用动态宽度 |

构建项目

# 安装依赖
pnpm install

# 开发模式
pnpm dev

# 构建
pnpm build

# 运行测试
pnpm test

License

This template was created under the MIT License.