# pull-map-last

> Like pull-stream/throughs/map except also takes a function to be called when the source ends.

Latest version **1.0.0** (published 2017-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install pull-map-last
pnpm add pull-map-last
yarn add pull-map-last
bun add pull-map-last
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-05-16 |
| First published | 2017-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | 'Dominic Tarr' |
| Maintainers | dominictarr |

## Links

- npm: https://www.npmjs.com/package/pull-map-last
- Repository: https://github.com/dominictarr/pull-map-last
- Issues: https://github.com/dominictarr/pull-map-last/issues
- npm.io page: https://npm.io/package/pull-map-last

## Recent versions

- 1.0.0 (latest) — 2017-05-16

## README

# pull-map-last

Like pull-stream/throughs/map except also takes a function to be called when the source ends.

Used to create streams that map 1:1 with input, but also need a special case for the end of the stream.

## Example

``` js
pull(
  source...,
  MapLast(function each (data) {
    return the transformed item...
  }, function () {
    return last item...
  }),
  ...sink
)

```


## License

MIT

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