Socket
Book a DemoInstallSign in
Socket

callbags

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

callbags

A helper to trim down the requiring of callbags.

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Callbags

A helper to trim down the requiring of callbags.

const c = require('callbags')('pipe', 'interval', 'map', 'observe')

c.pipe(
  c.interval(1000),
  c.map(x => x * 1.5),
  c.observe(console.log)
)

This is the equivalent of

cont pipe = require('callbage-pipe')
cont interval = require('callbage-interval')
cont map = require('callbage-map')
cont observe = require('callbage-observe')

pipe(
  interval(1000),
  map(x => x * 1.5),
  observe(console.log)
)

Browser

callbags/transform is a browserify transform that lets you use callbags in the browser.

Using the browserify cli:

browserify entry.js -t callbags/transform

Using your package.json:

{
  "browserify": {
    "transform": [
      "callbags/transform"
    ]
  }
}

FAQs

Package last updated on 12 Jun 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