
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@chenfengyuan/create-vue-component
Advanced tools
Convert anything to a Vue component.
dist/
āāā create-vue-component.js (UMD)
āāā create-vue-component.min.js (UMD, compressed)
āāā create-vue-component.common.js (CommonJS, default)
āāā create-vue-component.esm.js (ES Module)
npm install @chenfengyuan/create-vue-component
createVueComponent(content, options)
content
*
options
(optional)
Object
tag
String
'span'
data
*
content
is a render function.(return value)
Object
render
property value.template
property value.import createVueComponent from '@chenfengyuan/create-vue-component';
createVueComponent({
template: '<p>Hello, World!</p>',
});
// will render as: <p>Hello, World!</p>
createVueComponent('<strong>Hello, World!</strong>');
// will render as: <span><strong>Hello, World!</strong></span>
createVueComponent('Hello, World!');
// will render as: <span>Hello, World!</span>
createVueComponent('Hello, World!', {
tag: 'p',
});
// will render as: <p>Hello, World!</p>
createVueComponent(true);
// will render as: <span>true</span>
createVueComponent(1);
// will render as: <span>1</span>
createVueComponent(['Hello', 'World']);
// will render as: <span>Hello,World</span>
createVueComponent(function content(createElement, data, context) {
return createElement('p', `Hello, ${data.name}!`);
}, {
data: {
name: 'World',
},
});
// will render as: <p>Hello, World!</p>
createVueComponent({});
// will render as: <span>[object Object]</span>
createVueComponent();
// will render as: <span>undefined</span>
MIT Ā© Chen Fengyuan
FAQs
Convert anything to a Vue component.
The npm package @chenfengyuan/create-vue-component receives a total of 572 weekly downloads. As such, @chenfengyuan/create-vue-component popularity was classified as not popular.
We found that @chenfengyuan/create-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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.