Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-react-class-displayname

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-react-class-displayname - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "babel-plugin-transform-react-class-displayname",
"version": "1.0.0",
"version": "1.0.1",
"description": "Babel plugin that adds class' name as static property `displayName`",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -13,3 +13,3 @@ # babel-plugin-transform-react-class-displayname

```
yarn add babel-plugin-transform-react-class-displayname
yarn add --dev babel-plugin-transform-react-class-displayname
```

@@ -30,3 +30,3 @@

```
babel --plugins gtransform-react-class-displayname script.js
babel --plugins transform-react-class-displayname script.js
```

@@ -45,7 +45,7 @@

const component = class Class1 {
static displayName = "Class1";
};
class Class2 {
static displayName = "Class2";
}

@@ -52,0 +52,0 @@ ```

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