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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    7
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    7

Package Sidebar

Install

npm i pull-map-last

Weekly Downloads

7

Version

1.0.0

License

MIT

Last publish

Collaborators

  • nopersonsmodules