Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-object-rest-spread

Package Overview
Dependencies
54
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-syntax-object-rest-spread

Allow parsing of object rest/spread


Version published
Weekly downloads
27M
increased by1.79%
Maintainers
6
Install size
11.2 kB
Created
Weekly downloads
 

Package description

What is @babel/plugin-syntax-object-rest-spread?

The @babel/plugin-syntax-object-rest-spread package allows Babel to parse and handle the object rest/spread syntax. This syntax enables the extraction of properties from objects and the creation of new objects with certain properties of an existing object. It is important to note that this plugin only enables the syntax and does not transform it; the actual transformation is handled by another plugin like @babel/plugin-proposal-object-rest-spread.

What are @babel/plugin-syntax-object-rest-spread's main functionalities?

Object Rest Properties

Allows extracting the remaining own enumerable property keys that are not already picked off by the destructuring pattern.

{ ...rest } = object

Object Spread Properties

Enables the creation of a new object by copying own enumerable properties from a provided object onto the new object.

{ ...object }

Other packages similar to @babel/plugin-syntax-object-rest-spread

Readme

Source

@babel/plugin-syntax-object-rest-spread

Allow parsing of object rest/spread

See our website @babel/plugin-syntax-object-rest-spread for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-object-rest-spread

or using yarn:

yarn add @babel/plugin-syntax-object-rest-spread --dev

Keywords

FAQs

Last updated on 13 Jan 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc