# snofa

> Snomiao's Functional Async pipelines with typescript support.

Latest version **0.5.1** (published 2022-08-10) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install snofa
pnpm add snofa
yarn add snofa
bun add snofa
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2022-08-10 |
| First published | 2022-06-17 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 176.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Snowstar Miao |
| Maintainers | snomiao |
| Keywords | async, value, functional, pipeline, map, reduce, filter |

## Links

- npm: https://www.npmjs.com/package/snofa
- Repository: https://github.com/snomiao/js.git#master
- Homepage: https://github.com/snomiao/js/tree/master/packages/snofa#readme
- Issues: https://github.com/snomiao/js/issues?q=is%3Aissue+is%3Aopen+snofa
- npm.io page: https://npm.io/package/snofa

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

- 0.5.1 (latest) — 2022-08-10
- 0.5.0 — 2022-08-09
- 0.4.5 — 2022-07-22
- 0.4.4 — 2022-07-22
- 0.4.1 — 2022-07-07
- 0.4.0 — 2022-07-03
- 0.2.1 — 2022-07-03
- 0.1.0 — 2022-06-26
- 0.0.4 — 2022-06-17
- 0.0.3 — 2022-06-17
- 0.0.2 — 2022-06-17
- 0.0.1 — 2022-06-17

## README

# snofa

Snomiao's Functional Async pipelines with typescript support.

## Usage

```typescript
// sync functional pipeline
// apply functions from left to right
snof(12, (v) => v * 12); // === 144
snof((v: number) => v * 12)(12); // === 144
snof(
  () => 12,
  (v) => v * 12,
)(); // === 144
snof(
  () => 12,
  snof((v) => v * 12),
)(); // === 144

// async functional pipeline
// apply functions from left to right
// it's not nessary to use await in nested snofa
await snofa(12, (v) => v * 12); // === 144
await snofa((v: number) => v * 12)(12); // === 144
await snofa(
  () => 12,
  (v) => v * 12,
); // === 144
await snofa(
  () => 12,
  snofa((v) => v * 12),
)(); // === 144
```

## Reference

- [tubo - npm](https://www.npmjs.com/package/tubo)
- [Ramda Documentation](https://ramdajs.com/docs/)
- [selfrefactor/rambda](https://github.com/selfrefactor/rambda)
- [Lodash Documentation](https://lodash.com/docs/)

## About

### License

GPLv3 - [The GNU General Public License v3.0 - GNU Project - Free Software Foundation](https://www.gnu.org/licenses/gpl-3.0.en.html)

### Author

Author: snomiao <snomiao@gmail.com>
Website: [snomiao.com](https://snomiao.com)

### Sponsors

- None yet.

Claim your sponsorship by donating snomiao <[Email: snomiao@gmail.com](mailto:snomiao@gmail.com)>

### Contribute

The main repo is in [here](https://github.com/snomiao/js#readme), any issue and PR's welcome.

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