
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@aomao/plugin-codeblock
Advanced tools
代码块插件
$ yarn add @aomao/plugin-codeblock
Vue 使用
$ yarn add @aomao/plugin-codeblock-vue
添加到引擎
import Engine, { EngineInterface } from '@aomao/engine';
import CodeBlock , { CodeBlockComponent } from '@aomao/plugin-codeblock';
new Engine(...,{ plugins:[CodeBlock] , cards:[CodeBlockComponent]})
默认无快捷键
//快捷键,key 组合键,args,执行参数,[mode?: string, value?: string] 语言模式:可选,代码文本:可选
hotkey?:string | {key:string,args:Array<string>};//默认无
//使用配置
new Engine(...,{
config:{
"codeblock":{
//修改快捷键
hotkey:{
key:"mod+b",
args:["javascript","const test = 123;"]
}
}
}
})
别名设置
//使用配置
new Engine(...,{
config:{
"alias":{
text: 'plain',
sh: 'bash',
ts: 'typescript',
js: 'javascript',
py: 'python',
puml: 'plantuml',
uml: 'plantuml',
vb: 'basic',
md: 'markdown',
'c++': 'cpp',
'c#': 'csharp',
}
}
})
//可携带两个参数,语言类型,默认文本,都是可选的
engine.command.execute('codeblock', 'javascript', 'const test = 123;');
FAQs
The npm package @aomao/plugin-codeblock receives a total of 81 weekly downloads. As such, @aomao/plugin-codeblock popularity was classified as not popular.
We found that @aomao/plugin-codeblock 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.