babel/packages/babel-plugin-syntax-pipeline-operator

babel-plugin-syntax-pipeline-operator

Allow parsing of the pipeline operator |>. See the proposal for details.

Installation

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

Usage

.babelrc

{
  "plugins": ["syntax-pipeline-operator"]
}

Via CLI

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

Via Node API

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