babel/packages/babel-plugin-transform-pipeline-operator

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": ["transform-pipeline-operator"]
}

Via CLI

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

Via Node API

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