pull-map-last

1.0.0 • Public • Published

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

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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i pull-map-last

Weekly Downloads

24

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nopersonsmodules