Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-eval

Package Overview
Dependencies
77
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-transform-eval

Compile eval calls with string literals


Version published
Weekly downloads
70
increased by32.08%
Maintainers
5
Install size
2.80 kB
Created
Weekly downloads
 

Readme

Source

@babel/plugin-transform-eval

This plugin allows Babel to compile eval calls with string literals.

Example

In

eval("(() => 'foo')");

Out

eval("(function () { return 'foo'; })");

Installation

npm install --save-dev @babel/plugin-transform-eval

Usage

.babelrc

{
  "plugins": ["@babel/plugin-transform-eval"]
}

Via CLI

babel --plugins @babel/plugin-transform-eval script.js

Via Node API

require("@babel/core").transform("code", {
  plugins: ["@babel/plugin-transform-eval"]
});

Keywords

FAQs

Last updated on 17 Jan 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