Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
cz-emoji-chinese
Advanced tools
中文版本的 git 提交 emoji 提示
cz-emoji-chinese allows you to easily use emojis in your commits using [commitizen] with chinese.
❯ git cz
? 选择提交的更改类型: (Use arrow keys or type to search)
❯ fix 🐛 修复 Bug
style 🎨 改进代码的结构/格式
feature ✨ 引入新特性
prune 🔥 移除代码/文件
ui 💄 更新UI和样式文件
docs 📝 写文档
init 🎉 初始化提交
Globally
sudo npm install commitizen cz-emoji-chinese -g
# Method 1: set as default adapter for your projects
echo '{ "path": "cz-emoji-chinese" }' > ~/.czrc
# Method 2: If you want minimalist mode, you can set it like this
echo '{ "path": "cz-emoji-chinese", "config": { "cz-emoji-chinese": { "skipQuestions": [ "issues", "scope","body" ],"subjectMinLength": 6 } } }' > ~/.czrc
Locally
npm install --save-dev commitizen cz-emoji-chinese
Add this to your package.json
:
"config": {
"commitizen": {
"path": "./node_modules/cz-emoji-chinese"
},
}
$ git cz
By default cz-emoji-chinese
comes ready to run out of the box. Uses may vary, so there are a few configuration options to allow fine tuning for project needs.
Configuring cz-emoji-chinese
can be handled in the users home directory (~/.czrc
) for changes to impact all projects or on a per project basis (package.json
). Simply add the config property as shown below to the existing object in either of the locations with your settings for override.
{
"config": {
"cz-emoji-chinese": {}
}
}
An array of questions you want to skip:
{
"config": {
"cz-emoji-chinese": {
"skipQuestions": ["scope", "issues"]
}
}
}
.czrc like this:
{
"path": "cz-emoji-chinese",
"config": {
"cz-emoji-chinese": {
"skipQuestions": [
"issues",
"scope"
]
}
}
}
You can skip the following questions: scope
, body
, and issues
. The type
and subject
questions are mandatory.
By default cz-emoji-chinese
comes preconfigured with the Gitmoji types.
An [Inquirer.js] choices array:
{
"config": {
"cz-emoji-chinese": {
"types": [
{
"emoji": "🌟",
"code": ":star2:",
"description": "A new feature",
"name": "feature"
}
]
}
}
}
An [Inquirer.js] choices array:
{
"config": {
"cz-emoji-chinese": {
"scopes": ["home", "accounts", "ci"]
}
}
}
A boolean value that allows for an using a unicode value rather than the default of Gitmoji markup in a commit message. The default for symbol is false.
{
"config": {
"cz-emoji-chinese": {
"symbol": true
}
}
}
An object that contains overrides of the original questions:
{
"config": {
"cz-emoji-chinese": {
"questions": {
"body": "This will be displayed instead of original text"
}
}
}
}
Commitlint can be set to work with this package by leveraging the package https://github.com/arvinxx/commitlint-config-gitmoji.
npm install --save-dev commitlint-config-gitmoji
commitlint.config.js
module.exports = {
extends: ['gitmoji'],
parserPreset: {
parserOpts: {
headerPattern: /^(:\w*:)(?:\s)(?:\((.*?)\))?\s((?:.*(?=\())|.*)(?:\(#(\d*)\))?/,
headerCorrespondence: ['type', 'scope', 'subject', 'ticket']
}
}
}
MIT © Tw93
subjectMinLength
for ConfigFAQs
中文版本的 git-cz emoji 提示
The npm package cz-emoji-chinese receives a total of 20 weekly downloads. As such, cz-emoji-chinese popularity was classified as not popular.
We found that cz-emoji-chinese demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.