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

591 B

@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": ["@babel/syntax-pipeline-operator"]
}

Via CLI

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

Via Node API

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