
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-indent
Advanced tools
缩进插件
$ yarn add @hanfy/plugin-indent
添加到引擎
此插件建议放在第一个增加,以免其它插件拦截了事件,使其无法生效
import Engine, { EngineInterface } from '@hanfy/engine';
import Indent from '@hanfy/plugin-indent';
new Engine(...,{ plugins:[Indent] })
默认缩进快捷键 mod+]
默认删除缩进快捷键 mod+[
//快捷键,
hotkey?: {
in?:string //缩进快捷键,默认 mod+]
out?:string //删除缩进快捷键,默认 mod+[
};
//使用配置
new Engine(...,{
config:{
"indent":{
//修改快捷键
hotkey:{
"in":"快捷键",
"out":"快捷键"
}
}
}
})
最大 padding,每次缩进为 2
maxPadding?:number
有一个参数 默认为 in ,可选值为 in 增加缩进,out 减少缩进
engine.command.execute('indent');
//使用 command 执行查询当前状态,返回 numbber,当前缩进值
engine.command.queryState('indent');
FAQs
The npm package @hanfy/plugin-indent receives a total of 5 weekly downloads. As such, @hanfy/plugin-indent popularity was classified as not popular.
We found that @hanfy/plugin-indent 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.