Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

2109a-emoji

表情包处理方案

Published6 Jun 2024
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

1. 安装

npm install 2109a-emoji

2. 使用

// 引入对应的方法和数据
import {
  emojiList,
  addEmoji,
  emojiReplaceString,
  stringReplaceEmoji,
} from "2109a-emoji";

// emojiList 用于渲染表情列表
// 格式如下
[
  {
    emoji: "😄",
    rule: "[AA]",
  },
  {
    emoji: "😒",
    rule: "[B]",
  },
  {
    emoji: "😭",
    rule: "[C]",
  },
  {
    emoji: "😎",
    rule: "[D]",
  },
  {
    emoji: "🙂",
    rule: "[E]",
  },
];
// addEmoji 添加表情
// 语法: addEmoji(表情, 规则)
举例: addEmoji('😄','[AAA]')

// emojiReplaceString, 将表情包 转化 规则
// 举例子: “哈哈哈, 😄123”  => “哈哈哈, [A]123”
emojiReplaceString("哈哈哈, 😄123") // =>  “哈哈哈, [A]123”
// stringReplaceEmoji, 将规则 转化 表情包
// 举例子: “哈哈哈, [A]123”  => “哈哈哈, 😄123”
stringReplaceEmoji("哈哈哈, [A]123") // =>  “哈哈哈, 😄123”

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-ZX4laBszL4td8F6NZjnRWtPM/44BKszzKZtSC8QtB+jan3ytd+BSNWR2jdlGRzkDJTKP1qwaUwmsIy+iGxwHGA==",
  "shasum": "dd203f8a8718222c411cd35c659946e5ce891750",
  "tarball": "https://registry.npmjs.org/2109a-emoji/-/2109a-emoji-1.0.0.tgz",
  "fileCount": 2,
  "unpackedSize": 1281,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIDc3sOsSg2Q7J5NWvB1xvkn79Gltfq7zHy7ozFMLQEsEAiEAtQT4QSuNT5mUzKRyJRZ6k9XXnrTSFvLsQq0MIPNeFuo="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:d0b6f969b5dc86b3a4b9df6e00cfb85da7c3e6d20e1a5d112ff795a6fa2c9c0f

Other collected versions

1.0.16 JunView all collected versions →