
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.
easy-github-pages
Advanced tools
[](https://opensource.org/licenses/mit-license.php) [](https://www.npmjs.com/package/easy-github-pages) [
因为最近一直在写 Vue 相关的 GitHub 开源项目, 每个项目都需要有说明文档, 所以这里就直接开源出来一个快速搭建 GitHub Pages 的 Vue 组件。
npm install easy-github-pages --save-dev
// 局部引入
import EasyGithubPages from 'easy-github-pages'
export default {
components: {
EasyGithubPages
}
}
// 全局引入
import EasyGithubPages from 'easy-github-pages'
Vue.component(EasyGithubPages.name, EasyGithubPages)
<easy-github-pages
:menus="[
{
title: '介绍',
href: 'intro'
},
{
title: '安装',
href: 'install'
},
{
title: '使用',
href: 'usage'
}
]"
author="zhangchaojie"
homepage="https://github.com/dream2023"
githubUrl="https://github.com/dream2023/easy-github-pages"
title="easy-github-pages | 快速搭建 GitHub Pages 的 Vue 组件"
>
<section id="intro">
<h2>介绍</h2>
<p>xxx</p>
</section>
<section id="install">
<h2>安装</h2>
<p>
<blockquote>npm install xxx</blockquote>
</p>
</section>
<section id="usage">
<h2>使用</h2>
<p>
<blockquote>
<pre class="language-html">
<code class="language-html">
<easy-github-pages> 内容xxx(注意标签必须转换为字符实体, 例如 < 必须转为 <, 可以使用网站转码 https://www.sojson.com/rehtml ) </easy-github-pages>
</code>
</pre>
</blockquote>
</p>
</section>
</easy-github-pages>
props: {
// 文章标题
title: String,
// 文章对应的GitHub项目
githubUrl: String,
// 作者名称
author: String,
// 作者的个人主页或者GitHub主页(这里如果不填的话, 则使用githubUrl)
homepage: String,
// menu 导航菜单
menus: {
type: Array,
default () {
return []
}
}
}
FAQs
[](https://opensource.org/licenses/mit-license.php) [](https://www.npmjs.com/package/easy-github-pages) [
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.