Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-class-properties

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-class-properties

This plugin transforms static class properties as well as properties declared with the property initializer syntax


Version published
Weekly downloads
17M
decreased by-1.24%
Maintainers
4
Weekly downloads
 
Created

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

The @babel/plugin-transform-class-properties npm package allows developers to use the class properties syntax in JavaScript. It transforms static and instance properties so that they can be used in environments that do not support this feature natively.

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

Static Class Properties

This feature allows you to define static properties on a class, which are properties that belong to the class itself rather than to instances of the class.

class MyClass { static myStaticProp = 42; }

Instance Class Properties

This feature enables you to define properties directly on class instances, with an initial value, without needing to set them inside the class constructor.

class MyClass { myInstanceProp = 'default value'; }

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

Keywords

FAQs

Package last updated on 22 Aug 2024

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