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

@babel/plugin-transform-exponentiation-operator

Package Overview
Dependencies
Maintainers
5
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-exponentiation-operator

Compile exponentiation operator to ES5

  • 7.0.0-beta.47
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created

What is @babel/plugin-transform-exponentiation-operator?

The @babel/plugin-transform-exponentiation-operator package is a plugin for Babel, a JavaScript compiler, that allows developers to use the exponentiation operator (**) in their JavaScript code. This operator is used to raise the first operand to the power of the second operand. The plugin transforms this syntax into a format that is compatible with environments that do not support the exponentiation operator natively.

What are @babel/plugin-transform-exponentiation-operator's main functionalities?

Exponentiation Operator Transformation

This feature allows developers to write code using the exponentiation operator (**) for performing exponentiation operations. The plugin then transforms this syntax into a call to Math.pow, ensuring compatibility with older JavaScript environments.

"use strict";\n\nvar _Mathpow = Math.pow;\n\nvar a = 2;\nvar b = 3;\nvar c = _Mathpow(a, b); // Transforms a ** b into Math.pow(a, b)

Other packages similar to @babel/plugin-transform-exponentiation-operator

Keywords

FAQs

Package last updated on 15 May 2018

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