Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-class-properties

Package Overview
Dependencies
54
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-syntax-class-properties

Allow parsing of class properties


Version published
Weekly downloads
27M
decreased by-0.84%
Maintainers
6
Install size
8.69 kB
Created
Weekly downloads
 

Package description

What is @babel/plugin-syntax-class-properties?

The @babel/plugin-syntax-class-properties npm package allows Babel to parse class properties, enabling developers to use class properties syntax in JavaScript. This plugin is purely syntactical and does not apply any transformations. It is often used in conjunction with transformation plugins to compile class properties to a format compatible with older JavaScript engines.

What are @babel/plugin-syntax-class-properties's main functionalities?

Class Properties Syntax

Enables the use of static and instance class properties directly within class declarations. This syntax is part of the ECMAScript proposal and allows for clearer and more concise class definitions.

class MyClass {
  static myStaticProp = 42;
  myInstanceProp = 'hello';
}

Other packages similar to @babel/plugin-syntax-class-properties

Readme

Source

@babel/plugin-syntax-class-properties

Allow parsing of class properties

See our website @babel/plugin-syntax-class-properties for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-class-properties

or using yarn:

yarn add @babel/plugin-syntax-class-properties --dev

Keywords

FAQs

Last updated on 12 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