Socket
Socket
Sign inDemoInstall

babel-plugin-method-unchaining

Package Overview
Dependencies
50
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-plugin-method-unchaining

Transforms method chaining to sequence of expressions.


Version published
Weekly downloads
4
increased by300%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

babel-plugin-method-unchaining

Transforms method chaining to sequence of expressions.

Example

In

var result = Class.newBuilder().build();

Out

var _a;

var result = (_a = Class.newBuilder(), _a.build)();
_a = undefined;

Installation

npm install babel-plugin-method-unchaining

Usage

Via .babelrc

.babelrc

{
  "plugins": ["babel-plugin-method-unchaining"]
}

Via CLI

babel --plugins babel-plugin-method-unchaining script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["babel-plugin-method-unchaining"]
});

Keywords

FAQs

Last updated on 27 Sep 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