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
Via .babelrc (Recommended)
.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"]
});