
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
vuepress-plugin-code-example
Advanced tools
你总不想你的示例文档要这么写吧?
## 基本用法
<table-basic-usage />
<<< @/docs/.vuepress/components/table/basic-usage.vue
那你就可以用这个插件了。
yarn add vuepress-plugin-code-example
.vuepress/config.js
module.exports = {
plugins: ["code-example"],
};
首先参考官网的使用组件章节,编写你的组件示例代码。
比如你的示例代码文件路径为 .vuepress/components/demo.vue
然后在你的.md文件里,按照如下格式编写。
::: code-example demo.vue
:::
code-example会被插件解析到,后面填写组件的相对路径即可。


可参考我的一个组件库文档erpack
注意,目前插件代码里面包含了ant-design-vue的代码,所以要在你的项目中先安装该依赖。
我会尽快移除该限制。
FAQs
We found that vuepress-plugin-code-example 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.