# kefir-debug

> Utility for dynamic enabling log of kefir observables

Latest version **1.0.0-rc.2** (published 2016-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install kefir-debug
pnpm add kefir-debug
yarn add kefir-debug
bun add kefir-debug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-rc.2 |
| Published | 2016-02-16 |
| First published | 2016-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tretyak Valery |
| Maintainers | iofjuupasli |
| Keywords | kefir, debug, log, frp |

## Links

- npm: https://www.npmjs.com/package/kefir-debug
- Repository: https://github.com/iofjuupasli/kefir-debug
- Homepage: https://github.com/iofjuupasli/kefir-debug#readme
- Issues: https://github.com/iofjuupasli/kefir-debug/issues
- npm.io page: https://npm.io/package/kefir-debug

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.0-rc.2 (latest) — 2016-02-16
- 1.0.0-rc.1 — 2016-02-16

## README

kefir-debug
===

Utility for dynamic enabling log of kefir observables

Example
---

```js
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](https://www.npmjs.com/package/kefir-bus)

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

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

---
_Source: https://npm.io/package/kefir-debug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
