New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kefir-debug

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

kefir-debug

Utility for dynamic enabling log of kefir observables

  • 1.0.0-rc.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

kefir-debug

Utility for dynamic enabling log of kefir observables

Example

import Kefir from 'kefir';
import {setup}, debug from 'kefir-debug';

setup(Kefir.later(100, 'foo'), Kefir.later(4000, 'foo'));

debug('foo', Kefir.interval(1000, true));
debug('bar', Kefir.interval(1000, false));

Result:

foo <value> true
foo <value> true
foo <value> true

API

Exports:

.setup(
    enableLogForStreamWithNameStream : KefirObservable<string>,
    disableLogForStreamWithNameStream : KefirObservable<string>
) : KefirObservable<[string]>

Returns stream of array of names of enabled logs of streams.

You should pass kefir stream which emits string names of streams you have registered that you want to log.

Probably you want kefir-bus

.default(
    streamName : string,
    stream : KefirObservable<any>
) : void

You should register all streams that you want to log with that method

Keywords

FAQs

Package last updated on 16 Feb 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc