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

pull-high-watermark

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-high-watermark

a pull stream that eagerly reads ahead until it has reached the watermark.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
8
-52.94%
Maintainers
1
Weekly downloads
 
Created
Source

pull-high-watermark

a pull stream that eagerly reads ahead until it has reached the watermark.

example

if there is medium/heavy sync processing in the pipe line (say, parsing), it may go faster if we ensure there is always something coming in the async part,

We never want the io to be waiting for the parsing.

var pull = require('pull-stream')
var HighWatermark = require('pull-high-watermark')

pull(
  asyncSource,
  HighWatermark(10, 2), //go faster!
  heavySyncProcessing(),
  sink
)

HighWatermark(hwm, lwm[, group]) => through

read ahead at most to the high water mark (hwm) and at least to the low water mark (lwm) hwm default to 10, and lwm defaults to 0.

the group option indicates that the buffer should be emitted wholesale as an array. this allows consumers to run batch operations on values, while avoiding slowing down the upstream producer. defaults to false.

License

MIT

FAQs

Package last updated on 31 May 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