
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
vue-hi-code
Advanced tools
A simple and customizable code highlighter component for Vue 3 to showcase javascript snippets.
A light Vue 3 component to display javascript snippets.
npm i vue-hi-code
import { VueHiCode } from "vue-hi-code";
import "vue-hi-code/style.css"; // Include the css
const content = `
cosnt foo = function(param) {
return param + 1;
}
`;
<VueHiCode :content="content" language="javascript" />
| Name | Type | Required | Default |
|---|---|---|---|
| backgroundColor | string | no | "#2A2A2A" |
| baseTextColor | string | no | "#CCCCCC" |
| borderRadius | string | no | "0.3rem" |
| colorBrackets | string | no | "#559AD3" |
| colorComment | string | no | "#8A8A8A" |
| colorCssSelector | string | no | "#D7BA7D" |
| colorError | string | no | "#E46962" |
| colorFunction | string | no | "#DCDCAA" |
| colorHtmlTag | string | no | "#559AD3" |
| colorJsReserved | string | no | "#4ec9b0" |
| colorKeywords | string | no | "#B37BAE" |
| colorLineNumber | string | no | "#8A8A8A" |
| colorNumber | string | no | "#AEC6A1" |
| colorParenthesis | string | no | "#8A8A8A" |
| colorString | string | no | "#CD9077" |
| colorVariableKeyword | string | no | "#559AD3" |
| content | string | yes | |
| copyIconColor | string | no | "#CCCCCC" |
| copyIconSize | number | no | 20 |
| copyIconStrokeWidth | number | no | 1.5 |
| fontFamily | string | no | "'Fira code', monospace" |
| fontSize | string | no | "1rem" |
| language | "javascript" or "html" or "css" | yes | |
| lineHeight | string | no | "1.4rem" |
| padding | string | no | "1rem" |
| showIcon | boolean | no | false |
| title | string | no | "" |
| withCopy | boolean | no | true |
| withLineNumbers | boolean | no | false |
Using the props withCopy, a button is displayed on the top right of the component, which will copy the text content on click, and emit "copy" with the content.
<VueHiCode :content="content" language="javascript" @copy="copy" />
FAQs
A simple and customizable code highlighter component for Vue 3 to showcase javascript snippets.
The npm package vue-hi-code receives a total of 25 weekly downloads. As such, vue-hi-code popularity was classified as not popular.
We found that vue-hi-code 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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.