
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.
Tiny component to render Vue.js vNodes in the template.
<v :nodes="vnodes" />
250 B minzipped!npm i vue-v
<template>
<div>
<v :nodes="$slot.default" />
</div>
</template>
<script>
import V from 'vue-v';
export default {
components: {
V
}
};
</script>
When you have vNodes that you want to render in a specific part of your template without having to use a render function.
For example, you might want to render just the text from the default <slot />:
<template>
<div>
<!-- Only render the text from <slot /> -->
<v :nodes="textNodes()" />
</div>
</template>
<script>
import V from 'vue-v';
export default {
components: {
V
},
methods: {
// Can't use computed property because slots aren't reactive
textNodes() {
return (this.$slots.default || []).filter(vnode => !vnode.tag);
}
}
};
</script>
You can use vNode Syringe to overwrite attributes, props, and event-listeners.
For example, if you want to overwrite the class, and add a click handler:
<template>
<div>
<vnode-syringe
class!="overwrite-class"
@click="onClick"
>
<v :nodes="vnodes" />
</vnode-syringe>
</div>
</template>
<script>
import V from 'vue-v';
import vnodeSyringe from 'vue-vnode-syringe';
export default {
components: {
V,
vnodeSyringe
},
...,
methods: {
onClick() {
...
}
}
};
</script>
FAQs
Render Vue vNodes from the template
The npm package vue-v receives a total of 122 weekly downloads. As such, vue-v popularity was classified as not popular.
We found that vue-v 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.

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.