# babel-plugin-improved-piped-pipelines

> transpiles custom syntax to gulp-like pipelines

Latest version **2.0.0** (published 2022-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-improved-piped-pipelines
pnpm add babel-plugin-improved-piped-pipelines
yarn add babel-plugin-improved-piped-pipelines
bun add babel-plugin-improved-piped-pipelines
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-08-11 |
| First published | 2020-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Edwin Kofler |
| Maintainers | hyperupcall |
| Keywords | babel, plugin, babel-plugin, gulp, pipeline |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-improved-piped-pipelines
- Repository: https://github.com/hyperupcall/babel-improved-piped-pipelines
- Homepage: https://github.com/hyperupcall/babel-improved-piped-pipelines#readme
- Issues: https://github.com/hyperupcall/babel-improved-piped-pipelines/issues
- npm.io page: https://npm.io/package/babel-plugin-improved-piped-pipelines

## Dependencies (1)

- [babel-plugin-syntax-improved-piped-pipelines-operator](https://npm.io/package/babel-plugin-syntax-improved-piped-pipelines-operator.md) ^2.0.0

## 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

- 2.0.0 (latest) — 2022-08-11
- 1.2.0 — 2020-07-15
- 1.1.0 — 2020-07-15
- 1.0.2 — 2020-05-10
- 1.0.1 — 2020-05-10
- 0.2.6 — 2020-03-31
- 0.2.5 — 2020-03-31
- 0.2.4 — 2020-03-31
- 0.2.3 — 2020-03-27
- 0.2.1 — 2020-03-27
- 0.2.0 — 2020-03-27
- 0.1.1 — 2020-03-27
- 0.1.0 — 2020-03-27

## README

# babel-plugin-improved-piped-pipelines

Piggybacks on the new [pipeline operator syntax](https://github.com/tc39/proposal-pipeline-operator) to improve developer experience when using a gulp-like piping API. Mainly reduces the repetitive `.pipe` call and the messy closing parenthesis `))`

Right now, it depends on the conflicting pipeline JavaScript feature, so I hope to repurpose the `|>` syntax to something else.

## Example

### Input

```js
gulp.src('style.css')
  |> plumber()
  |> postcss()
  |> rename('style.min.css')
  |> gulp.dest('dist')
```

### Output

```js
gulp.src('style.css')
  .pipe(plumber())
  .pipe(postcss())
  .pipe(rename('style.min.css'))
  .pipe(gulp.dest('dist'))
```

## Usage

`operator` options can be any of the following: `['|>', '||', '&&', '??']`. the default is the pipeline operator

```json
{
  "plugins": [
    ["babel-plugin-improved-piped-pipelines", { "operator": "|>" }]
  ]
}
```

## Contributing

```sh
git clone https://github.com/hyperupcall/babel-improved-piped-pipelines
cd babel-plugin-improved-piped-pipelines
pnpm i -r
pnpm publish
```

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