2017-10-16 22:49:56 -04:00

36 lines
594 B
Markdown

# babel-plugin-transform-pipeline-operator
Transform pipeline operator `|>` into call expressions. See [the proposal](https://github.com/tc39/proposal-pipeline-operator) for details.
## Installation
```sh
$ npm install babel-plugin-transform-pipeline-operator
```
## Usage
### Via `.babelrc` (Recommended)
**.babelrc**
```json
{
"plugins": ["transform-pipeline-operator"]
}
```
### Via CLI
```sh
$ babel --plugins transform-pipeline-operator script.js
```
### Via Node API
```javascript
require("@babel/core").transform("code", {
plugins: ["transform-pipeline-operator"]
});
```