Socket
Socket
Sign inDemoInstall

babel-plugin-transform-es2015-function-name

Package Overview
Dependencies
24
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-transform-es2015-function-name

Apply ES2015 function.name semantics to all functions


Version published
Maintainers
4
Created

Readme

Source

babel-plugin-transform-es2015-function-name

Apply ES2015 function.name semantics to all functions

Examples

In

let number = (x) => x

Out

var number = function number(x) {
  return x;
};

Installation

npm install --save-dev babel-plugin-transform-es2015-function-name

Usage

.babelrc

{
  "plugins": ["transform-es2015-function-name"]
}

Via CLI

babel --plugins transform-es2015-function-name script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-es2015-function-name"]
});

Keywords

FAQs

Last updated on 26 Jul 2017

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