Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@babel/plugin-transform-class-properties
Advanced tools
This plugin transforms static class properties as well as properties declared with the property initializer syntax
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.
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'; }
This package is a successor to @babel/plugin-transform-class-properties and includes the proposal for class properties as it moves through the TC39 process. It offers similar functionality but aligns with the latest proposal spec.
While not identical, this package provides functionality for handling private methods and accessors in classes, which is related to the class fields feature that @babel/plugin-transform-class-properties handles.
This package includes @babel/plugin-transform-class-properties as one of the plugins it might use to transform code. It provides a broader range of transformations based on the target environment's ECMAScript feature support.
This plugin transforms static class properties as well as properties declared with the property initializer syntax
See our website @babel/plugin-transform-class-properties for more information.
Using npm:
npm install --save-dev @babel/plugin-transform-class-properties
or using yarn:
yarn add @babel/plugin-transform-class-properties --dev
v7.22.0 (2023-05-26)
babel-parser
, babel-plugin-transform-typescript
import ... =
and export =
in scripts (@nicolo-ribaudo)babel-compat-data
, babel-core
, babel-plugin-proposal-unicode-sets-regex
, babel-plugin-transform-unicode-sets-regex
, babel-preset-env
, babel-standalone
babel-helpers
, babel-plugin-proposal-explicit-resource-management
, babel-plugin-transform-runtime
, babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
, babel-standalone
using
declarations (@nicolo-ribaudo)babel-plugin-proposal-import-attributes-to-assertions
@babel/plugin-proposal-import-attributes-to-assertions
(@nicolo-ribaudo)babel-core
, babel-generator
, babel-parser
, babel-plugin-syntax-import-attributes
, babel-preset-env
, babel-standalone
, babel-types
babel-generator
, babel-parser
, babel-traverse
, babel-types
babel-core
, babel-helper-create-regexp-features-plugin
, babel-parser
babel-helpers
, babel-plugin-proposal-decorators
, babel-plugin-syntax-decorators
, babel-runtime-corejs2
, babel-runtime-corejs3
, babel-runtime
2023-05
(@nicolo-ribaudo)babel-plugin-transform-react-constant-elements
, babel-plugin-transform-react-jsx
, babel-traverse
, babel-types
babel-parser
babel-compat-data
, babel-helper-transform-fixture-test-runner
, babel-node
, babel-plugin-proposal-decorators
, babel-plugin-proposal-duplicate-named-capturing-groups-regex
, babel-plugin-transform-async-generator-functions
, babel-plugin-transform-named-capturing-groups-regex
, babel-plugin-transform-runtime
, babel-preset-env
, babel-runtime-corejs3
@babel/runtime
pkg (@nicolo-ribaudo)babel-core
, babel-plugin-proposal-async-generator-functions
, babel-plugin-proposal-class-properties
, babel-plugin-proposal-class-static-block
, babel-plugin-proposal-decorators
, babel-plugin-proposal-dynamic-import
, babel-plugin-proposal-export-namespace-from
, babel-plugin-proposal-function-sent
, babel-plugin-proposal-json-strings
, babel-plugin-proposal-logical-assignment-operators
, babel-plugin-proposal-nullish-coalescing-operator
, babel-plugin-proposal-numeric-separator
, babel-plugin-proposal-object-rest-spread
, babel-plugin-proposal-optional-catch-binding
, babel-plugin-proposal-optional-chaining
, babel-plugin-proposal-pipeline-operator
, babel-plugin-proposal-private-methods
, babel-plugin-proposal-private-property-in-object
, babel-plugin-proposal-unicode-property-regex
, babel-preset-env
, babel-standalone
-proposal-
s that became standard to -transform-
(@nicolo-ribaudo)FAQs
This plugin transforms static class properties as well as properties declared with the property initializer syntax
The npm package @babel/plugin-transform-class-properties receives a total of 14,916,772 weekly downloads. As such, @babel/plugin-transform-class-properties popularity was classified as popular.
We found that @babel/plugin-transform-class-properties demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.