Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-shorthand-properties

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-shorthand-properties - npm Package Compare versions

Comparing version 6.18.0 to 6.22.0

8

package.json
{
"name": "babel-plugin-transform-es2015-shorthand-properties",
"version": "6.18.0",
"version": "6.22.0",
"description": "Compile ES2015 shorthand properties to ES5",

@@ -12,8 +12,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-shorthand-properties",

"dependencies": {
"babel-types": "^6.18.0",
"babel-runtime": "^6.0.0"
"babel-types": "^6.22.0",
"babel-runtime": "^6.22.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.18.0"
"babel-helper-plugin-test-runner": "^6.22.0"
}
}
# babel-plugin-transform-es2015-shorthand-properties
Compile ES2015 shorthand properties to ES5
> Compile ES2015 shorthand properties to ES5
## Example
**In**
```js
var o = { a, b, c };
```
**Out**
```js
var o = { a: a, b: b, c:c };
```
**In**
```js
var cat = {
getName() {
return name;
}
};
```
**Out**
```js
var cat = {
getName: function () {
return name;
}
};
```
## Installation
```sh
$ npm install babel-plugin-transform-es2015-shorthand-properties
npm install --save-dev babel-plugin-transform-es2015-shorthand-properties
```

@@ -26,3 +60,3 @@

```sh
$ babel --plugins transform-es2015-shorthand-properties script.js
babel --plugins transform-es2015-shorthand-properties script.js
```

@@ -29,0 +63,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