@favoloso/conventional-changelog-emoji

中文文档
0.11.0发布于 2026/10/30MITCommonJS零依赖近 30 天下载 3887

Conventional Changelog with Emojis support

原始使用文档
文档目录8 节
  1. Requirements
  2. Installation
  3. Usage
  4. Usage with release-it
  5. Lint (and fix) commit messages
  6. Configuration
  7. Example config in package.json
  8. Available Emojis

@favoloso/conventional-changelog-emoji

CI npm

Conventional Changelog with Emojis support 🎉

The package has no runtime dependencies.

Requirements

  • conventional-changelog v8+ and conventional-recommended-bump v12+ (i.e. @release-it/conventional-changelog v12+ and release-it v21+).
  • Node.js v22+ (required by the tools above).

Older tools (Handlebars-based conventional-changelog-writer v8 and below) are supported by v0.10.x.

Installation

yarn add --dev @favoloso/conventional-changelog-emoji

or

npm install --save-dev @favoloso/conventional-changelog-emoji

Usage

conventional-changelog -p @favoloso/emoji -i CHANGELOG.md -s

Usage with release-it

You can use conventional-changelog plugin with the @favoloso/emoji preset.

"release-it": {
  "plugins": {
    "@release-it/conventional-changelog": {
      "preset": "@favoloso/emoji",
      "infile": "CHANGELOG.md"
    }
  }
}

Lint (and fix) commit messages

This package provides an additional bin script emoji-commit-lint.

The scripts lints and eventually changes commit messages, from traditional conventional changelog format (i.e. feat: Add a magic feature) to corresponding emoji (i.e. ✨ Add a magic feature), checks and applies correct casing (i.e. lower-case) and many more, as configured by Linter Rules.

To use it, install and initialize husky

yarn add --dev husky
yarn husky init

Now add the .husky/commit-msg hook:

HUSKY_GIT_PARAMS="$1" npx emoji-commit-lint

Now linter will check your commits. Any commit like <type>: <msg> will be automatically transformed with related emoji. See Available Emojis to see available types.

Configuration

The package works as-is, but its behaviour may be customized with the following options.

Note: Configuration is searched starting from the current directory up to the user home, in the following places (the first found wins): favolosoEmoji property in package.json, .favolosoEmojirc (JSON), .favolosoEmojirc.json, .favolosoEmojirc.js, favolosoEmoji.config.js. YAML files (.favolosoEmojirc, .favolosoEmojirc.yaml, .favolosoEmojirc.yml) are not supported anymore: please convert them to JSON.

  • emojis (default: {})

    An object allowing you to customize conventional-changelog types used (as Available Emojis table).

    You should provide an object, where the key is the type you want to edit (or add), and the value is the updated configuration. Configurations will be merged with originals if existing.

    See the Custom Emoji wiki page for further details.

  • rules (default: {})

    Allows to customize linter rules. See the Linter Rules wiki page for further details.

  • showEmojiPerCommit (default: false)

    In the changelog, shows emoji for each commit. In the default mode (false), emojis are omitted from commits and only the heading contains them (i.e. 🐛 Bug Fixes)

  • minorForBreakingInDevelopment (default: true)

    Breaking changes during development will be considered as minor instead of major bumps (see semver spec).

    1. Major version zero (0.y.z) is for initial development. Anything may change at any time. The public API should not be considered stable.
  • language (default: en)

    Allows to translate commits group heading in CHANGELOG.md (i.e. 🐛 Bug Fixes) and in linter messages. Languages available: en, it

Example config in package.json

{
  "favolosoEmoji": {
    "showEmojiPerCommit": false
  }
}

Available Emojis

EmojiAliasesTypeType AliasesVersion BumpIn Changelog?HeadingOrder
🚨breakingmajor✅🚨 Breaking Changes10
✨🌟, 💫, 🌠featminor✅✨ Features20
🔒securitypatch✅🔒 Security25
🛠️improvementimppatch✅🛠️ Improvements30
⚡️perfperformancepatch✅⚡️ Performance35
🐛🐞fixpatch✅🐛 Bug Fixes40
📚📖docsdocpatch✅📚 Documentation50
🏗️⚙️chorechorespatch✅🏗️ Chore60
🎨💄stylecleanuppatch🎨 Style90
♻️refactorpatch♻️ Refactoring90
🚦✅testpatch🚦 Test90
📦builddepspatch📦 Build90
🔖releasepatch🔖 Release90
🚧wippatch🚧 Wip90

版本与发布记录

@favoloso/conventional-changelog-emoji 共发布 13 个版本,首次发布于 2019/02/24;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.11.0latest2026/10/3015 天前
0.10.02019/10/247 年前
0.9.02019/03/027 年前
0.8.02019/03/027 年前
0.7.02019/02/277 年前
0.6.02019/02/267 年前

关于 @favoloso/conventional-changelog-emoji 的常见问题

@favoloso/conventional-changelog-emoji 是什么?

Conventional Changelog with Emojis support

如何安装 @favoloso/conventional-changelog-emoji?

在项目目录运行 npm install @favoloso/conventional-changelog-emoji,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 emoji-commit-lint,可以用 npx emoji-commit-lint 直接运行。

@favoloso/conventional-changelog-emoji 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/favoloso__conventional-changelog-emoji 是否存在。

@favoloso/conventional-changelog-emoji 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@favoloso/conventional-changelog-emoji 可以商用吗?

@favoloso/conventional-changelog-emoji 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@favoloso/conventional-changelog-emoji 的下载量有多少?

根据 npm 官方下载统计,@favoloso/conventional-changelog-emoji 在 2026/10/15 – 2026/11/13 这 30 天内被下载 3,887 次,日均约 130 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@favoloso/conventional-changelog-emoji 还在维护吗?

最新版本 0.11.0 发布于 2026/10/30(15 天前);至今共发布 13 个版本,其中过去 12 个月发布了 1 个;首次发布于 2019/02/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。