# array-tap

> Array extension for debugging chains of map and filter

Latest version **1.3.0** (published 2023-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install array-tap
pnpm add array-tap
yarn add array-tap
bun add array-tap
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2023-10-03 |
| First published | 2021-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Maciej Kasprzyk |
| Maintainers | maciejka |
| Keywords | array, map, debug |

## Links

- npm: https://www.npmjs.com/package/array-tap
- Repository: https://github.com/maciej-ka/array-tap
- Homepage: https://github.com/maciej-ka/array-tap#readme
- Issues: https://github.com/maciej-ka/array-tap/issues
- npm.io page: https://npm.io/package/array-tap

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.3.0 (latest) — 2023-10-03
- 1.2.0 — 2023-09-27
- 1.1.0 — 2021-03-07
- 1.0.1 — 2021-02-28
- 1.0.0 — 2021-02-28

## README

# Get value of array between chained calls
Tap can be placed in chains between filter and map.
It expects a callback function that will get a value of array.

### How to use
Import array-tap once in your project.
It will extend Array with a `tap` method.

```javascript
import 'array-tap';

["Alice", "in", "wonderland"]
  .map(str => str.length)
  .tap(arr => console.log(arr)) // prints: [5, 2, 10]
  .filter(n => n > 5);
```

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