Socket
Socket
Sign inDemoInstall

babel-helper-evaluate-path

Package Overview
Dependencies
0
Maintainers
7
Versions
79
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-helper-evaluate-path

path.evaluate wrapped in a try catch


Version published
Maintainers
7
Weekly downloads
448,479
decreased by-10.19%

Weekly downloads

Readme

Source

babel-helper-evaluate-path

A wrapper for babel's path.evaluate

Fixes / Features:

  • Detect usages before initialization / declaration
function foo() {
  console.log(b); // ReferenceError
  let b = 1;
}

function bar() {
  console.log(a); // a is void 0
  var a = 5;
  console.log(a); // 5
}
  • Detect usages in scopes outside of initialization for vars (hoisted)
function foo() {
  if (a) var x = 5;
  console.log(x); // cannot determine
}

Installation

npm install babel-helper-evaluate-path --save-dev

Keywords

FAQs

Last updated on 24 Sep 2018

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