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

callbag-buffer

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

callbag-buffer

👜 Callbag operator which buffers source values until separator stream emits.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
113
151.11%
Maintainers
1
Weekly downloads
 
Created
Source

callbag-buffer

Callbag operator which buffers source values until separator stream emits.

Example

import buffer from 'callbag-buffer'
import forEach from 'callbag-for-each'
import fromEvent from 'callbag-from-event'
import map from 'callbag-map'
import pipe from 'callbag-pipe'

const btn = document.getElementById('#release')

pipe(
  fromEvent(document, 'click'),
  map(() => Math.floor(Math.random() * 100))
  buffer(fromEvent(btn, 'click')),
  forEach(values => {
  	console.log(values) // [86, 93, 57, 64] ...
  })
)

Keywords

callbag

FAQs

Package last updated on 16 Jul 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