New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

pull-append

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-append

append a value to the end of a pull stream.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 18 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts