# babel-plugin-transform-opipe

> A babel parser and plugin implementing the opipe operator, to easily pipe an object.

Latest version **1.0.0** (published 2019-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-transform-opipe
pnpm add babel-plugin-transform-opipe
yarn add babel-plugin-transform-opipe
bun add babel-plugin-transform-opipe
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-02-06 |
| First published | 2019-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | peoro |
| Maintainers | peoro |
| Keywords | opipe, operator, pipe, pipeline, piping, syntax, babel, babel-plugin, babel-parser |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-transform-opipe
- Repository: https://github.com/peoro/babel-plugin-transform-opipe
- Homepage: https://github.com/peoro/babel-plugin-transform-opipe#readme
- Issues: https://github.com/peoro/babel-plugin-transform-opipe/issues
- npm.io page: https://npm.io/package/babel-plugin-transform-opipe

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-02-06

## README

# babel-plugin-transform-opipe ![npm (scoped)](https://img.shields.io/npm/v/babel-plugin-transform-opipe.svg?style=popout) ![NpmLicense](https://img.shields.io/npm/l/babel-plugin-transform-opipe.svg?style=popout) ![David](https://img.shields.io/david/peoro/babel-plugin-transform-opipe.svg?style=popout) ![Travis (.com)](https://img.shields.io/travis/com/peoro/babel-plugin-transform-opipe.svg?style=popout) ![Coveralls github](https://img.shields.io/coveralls/github/peoro/babel-plugin-transform-opipe.svg?style=popout)

> A babel parser and plugin implementing the opipe operator, to easily pipe an object.

```javascript
const _ = require('lodash');
const ten = [1,2,3,4]
    :| _.filter( n=>n%2 ) // [1,3]
    :| _.map( n=>n**2 )   // [1,9]
    :| _.sum();           // 10
```

-   [Installation](#installation)
-   [Opipe operator](#opipe-operator)
-   [Quickstart](#quickstart)

## Installation

```bash
npm install --save-dev babel-plugin-transform-opipe
```

## Opipe operator

The opipe operator is defined as following:

```javascript
a :| b(...args) ≡ b(a, ...args)
```

It's handy to quickly and easily pipe objects through method-like-functions that accept their logical `this` as the first parameter.

## Quickstart

Install the babel suite, enable this plugin, then use babel to transpile your code
The easiest way to get started, is the following:

```javascript
npm install --save babel-plugin-transform-opipe babel-meta
npx babel-node --plugins='babel-plugin-transform-opipe' your_opipeful_file.js
```

---
_Source: https://npm.io/package/babel-plugin-transform-opipe · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
