Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@vue/babel-helper-vue-jsx-merge-props

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/babel-helper-vue-jsx-merge-props

Babel helper for Vue JSX spread


Version published
Weekly downloads
810K
increased by5.78%
Maintainers
3
Weekly downloads
 
Created

What is @vue/babel-helper-vue-jsx-merge-props?

@vue/babel-helper-vue-jsx-merge-props is a utility package designed to help with merging props in Vue.js JSX. It simplifies the process of combining multiple sets of properties into a single set, which is particularly useful when dealing with JSX in Vue components.

What are @vue/babel-helper-vue-jsx-merge-props's main functionalities?

Merging Props

This feature allows you to merge multiple sets of properties into one. In the example, `props1` and `props2` are merged, resulting in a single object that combines the classes and other properties.

const mergeProps = require('@vue/babel-helper-vue-jsx-merge-props');
const props1 = { class: 'btn', type: 'button' };
const props2 = { class: 'btn-primary', disabled: true };
const mergedProps = mergeProps([props1, props2]);
console.log(mergedProps); // { class: 'btn btn-primary', type: 'button', disabled: true }

Other packages similar to @vue/babel-helper-vue-jsx-merge-props

FAQs

Package last updated on 16 Oct 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc