# @jswork/next-compose

> Compose for next.

Latest version **1.1.3** (published 2023-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jswork/next-compose
pnpm add @jswork/next-compose
yarn add @jswork/next-compose
bun add @jswork/next-compose
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-04-07 |
| First published | 2020-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | afei |
| Maintainers | afeiship |
| Keywords | next, compose, pipe, filter |

## Links

- npm: https://www.npmjs.com/package/@jswork/next-compose
- Homepage: https://js.work
- npm.io page: https://npm.io/package/@jswork/next-compose

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2023-04-07
- 1.1.2 — 2021-12-02
- 1.1.1 — 2021-12-02
- 1.1.0 — 2021-11-24
- 1.0.0 — 2020-11-20

## README

# next-compose
> Compose for next.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-compose
```

## usage
```js
import '@jswork/next-compose';

const fn1 = function (inStr) {
  return inStr.toUpperCase();
};

const fn2 = function (inStr) {
  return ['{', inStr, '}'].join('');
};

const fn3 = function (inStr){
  return '@' + inStr;
}

const cp = nx.compose(fn1, fn2, fn3);
const cp2 = nx.compose(fn3, fn2, fn1);

const rs = cp('afei');  // fn1(fn2(fn3('afei')));
// {@AFEI}

const rs2 = cp2('afei'); // fn3(fn2(fn1('afei')));
// @{AFEI}
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-compose/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-compose
[version-url]: https://npmjs.org/package/@jswork/next-compose

[license-image]: https://img.shields.io/npm/l/@jswork/next-compose
[license-url]: https://github.com/afeiship/next-compose/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-compose
[size-url]: https://github.com/afeiship/next-compose/blob/master/dist/next-compose.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-compose
[download-url]: https://www.npmjs.com/package/@jswork/next-compose

---
_Source: https://npm.io/package/@jswork/next-compose · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
