Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-exponentiation-operator

Package Overview
Dependencies
83
Maintainers
5
Versions
65
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.0.0-beta.49 to 7.0.0-beta.50

10

package.json
{
"name": "@babel/plugin-transform-exponentiation-operator",
"version": "7.0.0-beta.49",
"version": "7.0.0-beta.50",
"description": "Compile exponentiation operator to ES5",

@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-exponentiation-operator",

"dependencies": {
"@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.49",
"@babel/helper-plugin-utils": "7.0.0-beta.49"
"@babel/helper-builder-binary-assignment-operator-visitor": "7.0.0-beta.50",
"@babel/helper-plugin-utils": "7.0.0-beta.50"
},

@@ -20,5 +20,5 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.0.0-beta.49",
"@babel/helper-plugin-test-runner": "7.0.0-beta.49"
"@babel/core": "7.0.0-beta.50",
"@babel/helper-plugin-test-runner": "7.0.0-beta.50"
}
}

@@ -5,55 +5,16 @@ # @babel/plugin-transform-exponentiation-operator

## Example
See our website [@babel/plugin-transform-exponentiation-operator](https://new.babeljs.io/docs/en/next/babel-plugin-transform-exponentiation-operator.html) for more information.
**In**
## Install
```javascript
let x = 10 ** 2;
Using npm:
x **= 3;
```
**Out**
```javascript
let x = Math.pow(10, 2);
x = Math.pow(x, 3);
```
## Installation
```sh
npm install --save-dev @babel/plugin-transform-exponentiation-operator
npm install --save @babel/plugin-transform-exponentiation-operator
```
## Usage
or using yarn:
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["@babel/plugin-transform-exponentiation-operator"]
}
```
### Via CLI
```sh
babel --plugins @babel/plugin-transform-exponentiation-operator script.js
yarn add --save @babel/plugin-transform-exponentiation-operator
```
### Via Node API
```javascript
require("@babel/core").transform("code", {
plugins: ["@babel/plugin-transform-exponentiation-operator"]
});
```
## References
* [Proposal: Exponentiation Operator](https://github.com/rwaldron/exponentiation-operator)
* [Spec: Exponential Operator](https://rwaldron.github.io/exponentiation-operator/)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc