You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-class-static-block

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-syntax-class-static-block

Allow parsing of class static blocks


Version published
Weekly downloads
18M
decreased by-0.15%
Maintainers
6
Install size
130 kB
Created
Weekly downloads
 

Package description

What is @babel/plugin-syntax-class-static-block?

The @babel/plugin-syntax-class-static-block npm package allows Babel to parse static blocks within class bodies. Static blocks provide a way to perform additional static initialization during class definition evaluation. This can be useful for a variety of tasks such as setting up resources, performing checks, or configuring implementations that are shared across all instances of a class.

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

Static Block Syntax Support

Enables parsing of static blocks within classes, allowing for static initialization code that runs when the class is defined.

class MyClass {
  static {
    // Initialization code
    console.log('Static block in MyClass');
  }
}

Other packages similar to @babel/plugin-syntax-class-static-block

Readme

Source

@babel/plugin-syntax-class-static-block

Allow parsing of class static blocks

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

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-class-static-block

or using yarn:

yarn add @babel/plugin-syntax-class-static-block --dev

Keywords

FAQs

Package last updated on 03 Feb 2021

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc