# maplex

> An asynchronous, multiplexed iterable mapper

Latest version **1.0.0** (published 2023-06-22) · MIT license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2023-06-22 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Abbey Hawk Sparrow |
| Maintainers | khrome |

## Links

- npm: https://www.npmjs.com/package/maplex
- Repository: https://github.com/khrome/maplex
- Homepage: https://github.com/khrome/maplex#readme
- Issues: https://github.com/khrome/maplex/issues
- npm.io page: https://npm.io/package/maplex

## Dependencies (1)

- [async](https://npm.io/package/async.md) ^3.2.4

## Recent versions

- 1.0.0 (latest) — 2023-06-22
- 0.0.3 — 2022-10-16
- 0.0.2 — 2019-08-01
- 0.0.1 — 2019-02-25

## README

Maplex
======

A multiplexed mapper

I do a huge amount of work just via map/filter/reduce in js, but the one pattern that has never fit cleanly into this pattern is wanting to produce a single map output from many different parallel arrays, asynchronously (and thus, innately yeilding). This does that.

Usage
-----

```js
    import { Maplex } from 'maplex';
    // or
    const { Maplex } = require('maplex');
    Maplex.map(arrayA, ... arrayN, function(itemA, ... itemN){
        //do your work here and store it in finalItem
        return finalItem;
    }, function(result){
        //do something with your mapped value
    });
```

If you omit the completion function the results are not gathered, which is useful in streaming cases.

Testing
-------

Just run `mocha`


Enjoy,

-Abbey Hawk Sparrow

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