
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
is-vue-component
Advanced tools
Check if the given value is a valid Vue component.
What is a valid Vue component?
el
: a non-empty string or an Element
.template
: a non-empty string.render
: a function.extends
: a valid Vue component.mixins
: an array includes at least a valid Vue component.dist/
├── is-vue-component.js (UMD)
├── is-vue-component.min.js (UMD, compressed)
├── is-vue-component.common.js (CommonJS, default)
└── is-vue-component.esm.js (ES Module)
npm install is-vue-component
<div id="app"></div>
import isVueComponent from 'is-vue-component';
isVueComponent({
el: '#app',
});
// > true
isVueComponent({
el: document.getElementById('app'),
});
// > true
isVueComponent({
template: '<p>Hello, World!</p>',
});
// > true
isVueComponent({
render(createElement) {
return createElement('p', 'Hello, World!');
},
});
// > true
isVueComponent({
extends: {
render(createElement) {
return createElement('p', 'Hello, World!');
},
},
});
// > true
isVueComponent({
mixins: [
{
render(createElement) {
return createElement('p', 'Hello, World!');
},
},
],
});
// > true
isVueComponent({});
// > false
FAQs
Check if the given value is a valid Vue component.
The npm package is-vue-component receives a total of 463 weekly downloads. As such, is-vue-component popularity was classified as not popular.
We found that is-vue-component 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.