Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@huyikai/vitepress-helper
Advanced tools
This tool is designed to help you to use VitePress more easily.
On the basis of vitepress, optimize the user experience.
Currently, two usage methods are planned:
@huyikai/vitepress-helper
to an existing vitepress project and manually modify the config and theme.npx @huyikai/vitepress-helper init
You will be greeted with a few simple questions:
# Project Name
# Author
# Version
# Do you need local CMS?
After the initialization is complete, you can run npm run dev
to preview or run npm run cms
to manage content.
npm @huyikai/vitepress-helper
// Modify config.js
import vitepressHelper from '@huyikai/vitepress-helper';
export default async () => {
const instance: any = await vitepressHelper({
directory: 'docs',
collapsible: true
});
return {
...,
themeConfig:{
...,
nav:instance.nav,// You can continue to expand. Example: [...instance.nav,...otherNavArray]
sidebar:instance.sidebar // You can continue to expand. Example: [...instance.sidebar,...otherSidebarArray]
}
}
}
Create directory .vitepress/theme
, and create files home.vue
and index.js
<script setup lang="ts">
import VPDoc from 'vitepress/dist/client/theme-default/components/VPDoc.vue';
import VPButton from 'vitepress/dist/client/theme-default/components/VPButton.vue';
</script>
<template>
<!-- You can customize any content, for example: -->
<div>A journey of a thousand miles begins with a single step</div>
<!-- The VPDoc component here will render the content of index.md in the docs root directory. -->
<VPDoc />
</template>
<style></style>
import 'vitepress/dist/client/theme-default/styles/vars.css';
import 'vitepress/dist/client/theme-default/styles/base.css';
import 'vitepress/dist/client/theme-default/styles/utils.css';
import 'vitepress/dist/client/theme-default/styles/components/custom-block.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-code.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-code-group.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-doc.css';
import 'vitepress/dist/client/theme-default/styles/components/vp-sponsor.css';
import Home from './home.vue';
import Layout from '@huyikai/vitepress-helper/theme/Theme.vue';
import VPBadge from 'vitepress/dist/client/theme-default/components/VPBadge.vue';
const theme = {
Layout,
enhanceApp: ({ app }) => {
app.component('Home', Home);
app.component('Badge', VPBadge);
}
};
export default theme;
FAQs
This tool is designed to help you to use VitePress more easily.
The npm package @huyikai/vitepress-helper receives a total of 11 weekly downloads. As such, @huyikai/vitepress-helper popularity was classified as not popular.
We found that @huyikai/vitepress-helper demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.