babel/packages/babel-plugin-syntax-pipeline-operator
2017-10-15 09:12:00 -04:00
..
2017-09-29 19:01:18 -04:00
2017-10-15 09:12:00 -04:00
2017-09-29 19:01:18 -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": ["syntax-pipeline-operator"]
}

Via CLI

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

Via Node API

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