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 UnorderedList from '/your/custom/components/UnorderedList.vue';
import ListItem from '/your/custom/components/ListItem.vue';
import FigureImage from '/your/custom/components/FigureImage.vue';
import gemojiToEmoji from 'remark-gemoji-to-emoji';
export default {
data() {
return {
markdown: '# your markdown'
};
},
components: {
markduck: (() => {
return Markduck({
remarkPlugins: [gemojiToEmoji],
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;
};
{}
Remark plugins.
A part of lists is here 👉 github.com/remarkjs/remark/blob/master/doc/plugins.md#list-of-plugins
Array
of Plugin
or { plugin: Plugin, config: Settings }
(Plugin
and Settings
are from Unified.)
[]
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.