npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

pull-append

1.0.0

@dominictarr

npmHomeRepoSnykSocket
Downloads:3
$ npm install pull-append
DailyWeeklyMonthlyYearly

pull-append

append a value to the end of a pull stream.

example

var Append = require('pull-append')
var pull = require('pull-stream')

pull(
  pull.values([1,2,3]),
  Append(function () {
    return 40
  }),
  pull.collect(function (err, ary) {
    console.log(ary) // => [1, 2, 3, 40]
  })
)

Append(last) => Through

return a through stream that passes through it's input unchanged except that the return value of last() is appended.

if the source ends in an error, the error is passed immediately, without adding last()

License

MIT