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

babel-plugin-class-properties-7to6

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-class-properties-7to6

es7.classProperties without es6.classes

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

babel-plugin-class-properties-7to6

es7.classProperties without es6.classes.

Note: This plugin doesn't actually transform properties correctly at the moment. Instead, it just removes class properties wherever they're encountered. This obviously breaks the code in the general case, but can still be helpful to apply before some tools (e.g. JSDoc) that rely on pre-ES7 parsers.

The current behavior is enough for my needs. Of course, PRs reimplementing the required bits of es6.classes while still emitting valid ES6 are very welcome.

Installation

$ npm install babel-plugin-class-properties-7to6

Usage

.babelrc

{
  "plugins": ["class-properties-7to6"]
}

Via CLI

$ babel --plugins class-properties-7to6 script.js

Via Node API

require('babel').transform('code', {
  plugins: ['class-properties-7to6']
});

Keywords

FAQs

Package last updated on 10 Jul 2015

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