babel/packages/babel-plugin-syntax-pipeline-operator
2017-10-30 16:55:46 -04:00
..
2017-09-29 19:01:18 -04:00
2017-10-30 16:55:46 -04:00

@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"]
});