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.
Render markdown with your Vue components.
$ npm install markduckjs
or
$ yarn add markduckjs
<template>
<markduck :markdown="markdown"/>
</template>
<script>
import Markduck from 'markduckjs';
import UnorderedList from '/your/custom/components/UnorderedList.vue';
import ListItem from '/your/custom/components/ListItem.vue';
import FigureImage from '/your/custom/components/FigureImage.vue';
import { emojify } from 'node-emoji';
export default {
data() {
return {
markdown: '# your markdown'
};
},
components: {
markduck: (() => {
return Markduck({
textFilter(text) {
return emojify(text);
},
components: {
ul: UnorderedList, // register your components!
li: ListItem,
img: (vdom, parent) => { // you can register it via function
if (vdom.properties.attributes.alt) {
return FigureImage;
}
return undefined;
},
},
});
})(),
},
};
Register Vue components corresponding to each Html element.
object
type ComponentRegisterFunc = (node: VNode, parentNode?: VNode) => VueConstructor<Vue> | undefined;
type ComponentRegisterOption = {
[keyof: string]: VueConstructor<Vue> | ComponentRegisterFunc;
};
{}
Mutate text node
(text: string) => string;
undefined
Clone and run:
npm run demo
FAQs
Render markdown with your Vue components.
The npm package markduckjs receives a total of 2 weekly downloads. As such, markduckjs popularity was classified as not popular.
We found that markduckjs 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
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.