
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@babel/helper-hoist-variables
Advanced tools
Helper function to hoist variables
See our website @babel/helper-hoist-variables for more information.
Using npm:
npm install --save @babel/helper-hoist-variables
or using yarn:
yarn add @babel/helper-hoist-variables
v7.24.7 (2024-06-05)
babel-node
babel-traverse
constantViolations with destructuring (@liuxingbaoyu)babel-helper-transform-fixture-test-runner, babel-plugin-proposal-explicit-resource-management
using in switch correctly (@liuxingbaoyu)babel-helpers, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
This package is a Babel plugin that transforms ES2015 block scoping (let and const) into ES5-compatible code. It hoists declarations to the appropriate scope, similar to what @babel/helper-hoist-variables does, but as a standalone plugin for Babel.
This package introduces strict mode to the entire file. It doesn't directly hoist variables, but by enforcing strict mode, it can prevent variable hoisting issues by catching them early during the development process.
Lebab is a tool that transforms older JavaScript into newer JavaScript. It includes features for transforming var declarations into let/const, which involves understanding and potentially altering the scope of variables, somewhat similar to the hoisting behavior of @babel/helper-hoist-variables.
FAQs
Helper function to hoist variables
The npm package @babel/helper-hoist-variables receives a total of 13,439,561 weekly downloads. As such, @babel/helper-hoist-variables popularity was classified as popular.
We found that @babel/helper-hoist-variables demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.