# @0ti.me/tiny-pfp

> A tiny, minimalist lodash alternative library

Latest version **0.1.14** (published 2020-10-20) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @0ti.me/tiny-pfp
pnpm add @0ti.me/tiny-pfp
yarn add @0ti.me/tiny-pfp
bun add @0ti.me/tiny-pfp
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.14 |
| Published | 2020-10-20 |
| First published | 2020-08-04 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | hibes |

## Links

- npm: https://www.npmjs.com/package/@0ti.me/tiny-pfp
- Repository: https://github.com/0time/tiny-pfp
- Homepage: https://github.com/0time/tiny-pfp#readme
- Issues: https://github.com/0time/tiny-pfp/issues
- npm.io page: https://npm.io/package/@0ti.me/tiny-pfp

## Recent versions

- 0.1.14 (latest) — 2020-10-20
- 0.1.13 — 2020-08-31
- 0.1.12 — 2020-08-17
- 0.1.10 — 2020-08-08
- 0.1.9 — 2020-08-08
- 0.1.7 — 2020-08-08
- 0.1.6 — 2020-08-05
- 0.1.5 — 2020-08-05
- 0.1.4 — 2020-08-05
- 0.1.2 — 2020-08-04

## README

[![Build Status](https://travis-ci.org/0time/tiny-pfp.svg?branch=master)](https://travis-ci.org/0time/tiny-pfp)
[![Coverage Status](https://coveralls.io/repos/github/0time/tiny-pfp/badge.svg?branch=master)](https://coveralls.io/github/0time/tiny-pfp?branch=master)

# tiny-pfp

A lightweight alternative to lodash.

## Functional Programming

    const {fp} = require('@0ti.me/tiny-pfp');

    const mapReduce = (mapFn, reduceFn, initialAccumulator) =>
      flow([fp.map(mapFn), fp.reduce(reduceFn, initialAccumulator)]);

    const data = [1, 2, 3];

    const result = mapReduce(each => 3 * each, (acc, each) => acc + each, 0)(data);

    console.error(result); // Outputs the sum of 3x each item in data: 18

---
_Source: https://npm.io/package/@0ti.me/tiny-pfp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
