2017-10-27 11:50:59 -04:00

617 B

@babel/plugin-transform-pipeline-operator

Transform pipeline operator |> into call expressions. See the proposal for details.

Installation

$ npm install @babel/plugin-transform-pipeline-operator

Usage

.babelrc

{
  "plugins": ["@babel/transform-pipeline-operator"]
}

Via CLI

$ babel --plugins @babel/transform-pipeline-operator script.js

Via Node API

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