
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@hanfy/plugin-fontcolor
Advanced tools
前景色插件
$ yarn add @hanfy/plugin-fontcolor
添加到引擎
import Engine, { EngineInterface } from '@hanfy/engine';
import Fontcolor from '@hanfy/plugin-fontcolor';
new Engine(...,{ plugins:[Fontcolor] })
默认无快捷键
//快捷键,key 组合键,args,执行参数,[color,defaultColor?] , color 必须,defaultColor 可选
hotkey?:{key:string,args:Array<string>};//默认无
//使用配置
new Engine(...,{
config:{
"fontcolor":{
//修改快捷键
hotkey:{
key:"mod+b",
args:["#000000","#ffffff"]
}
}
}
})
//color:更改的前景颜色,defaultColor:保持的默认前景色,在没有传入 defaultColor 或者 color 与 defaultColor 值不同时执行前景色修改
engine.command.execute('fontcolor', color, defaultColor);
//使用 command 执行查询当前状态,返回 Array<string> | undefined,当前光标所在处前景色值集合
engine.command.queryState('fontcolor');
FAQs
We found that @hanfy/plugin-fontcolor 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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.