Socket
Socket
Sign inDemoInstall

@babel/helper-skip-transparent-expression-wrappers

Package Overview
Dependencies
4
Maintainers
4
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-skip-transparent-expression-wrappers

Helper which skips types and parentheses


Version published
Maintainers
4
Weekly downloads
22,415,217
decreased by-6.26%

Weekly downloads

Package description

What is @babel/helper-skip-transparent-expression-wrappers?

The @babel/helper-skip-transparent-expression-wrappers package is a utility within the Babel ecosystem designed to help navigate and manipulate AST (Abstract Syntax Tree) nodes effectively. It specifically aids in skipping over certain 'transparent' wrapper expressions like parentheses that do not semantically change the code but can complicate AST traversal and manipulation. This is particularly useful in scenarios where the goal is to analyze or transform the underlying or 'real' expressions without being obstructed by these wrappers.

What are @babel/helper-skip-transparent-expression-wrappers's main functionalities?

Skipping Transparent Wrappers

This feature allows developers to bypass expressions that do not alter the semantics of the code, such as nested parentheses, to directly access and manipulate the significant AST node. The code sample demonstrates how one might use this package to unwrap a nested expression.

const skipTransparentExprWrappers = require('@babel/helper-skip-transparent-expression-wrappers');

const astNode = parseCodeToAST('((a))'); // Assuming parseCodeToAST is a function that parses code to an AST node
const realNode = skipTransparentExprWrappers(astNode);

Other packages similar to @babel/helper-skip-transparent-expression-wrappers

Changelog

Source

v7.18.9 (2022-07-18)

:bug: Bug Fix
  • babel-plugin-transform-modules-systemjs, babel-types
    • #14763 fix: allow exporting TSDeclareFunction as default (@zxbodya)
  • babel-generator
:nail_care: Polish
:house: Internal
  • babel-core, babel-helper-remap-async-to-generator, babel-helpers, babel-parser, babel-plugin-transform-block-scoping, babel-preset-env
  • babel-helper-create-class-features-plugin, babel-helper-member-expression-to-functions, babel-helper-remap-async-to-generator, babel-helper-replace-supers, babel-helper-wrap-function, babel-helpers, babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining, babel-plugin-proposal-decorators, babel-plugin-proposal-object-rest-spread, babel-plugin-proposal-optional-chaining, babel-plugin-transform-block-scoping, babel-plugin-transform-classes, babel-traverse, babel-types
:running_woman: Performance

Readme

Source

@babel/helper-skip-transparent-expression-wrappers

Helper which skips types and parentheses

See our website @babel/helper-skip-transparent-expression-wrappers for more information.

Install

Using npm:

npm install --save @babel/helper-skip-transparent-expression-wrappers

or using yarn:

yarn add @babel/helper-skip-transparent-expression-wrappers

FAQs

Last updated on 18 Jul 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc