# ramda-log

> Simple log functions for ramda

Latest version **0.0.3** (published 2018-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install ramda-log
pnpm add ramda-log
yarn add ramda-log
bun add ramda-log
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-02-21 |
| First published | 2018-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 140.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Pedr Browne |
| Maintainers | undistraction |

## Links

- npm: https://www.npmjs.com/package/ramda-log
- Repository: https://Undistraction@github.com/Undistraction/ramda-log
- Homepage: https://github.com/Undistraction/ramda-log#readme
- Issues: https://github.com/Undistraction/ramda-log/issues
- npm.io page: https://npm.io/package/ramda-log

## Dependencies (3)

- [ramda](https://npm.io/package/ramda.md) ^0.25.0
- [ramda-adjunct](https://npm.io/package/ramda-adjunct.md) ^2.5.0
- [safe-json-stringify](https://npm.io/package/safe-json-stringify.md) ^1.1.0

## Recent versions

- 0.0.3 (latest) — 2018-02-21
- 0.0.2 — 2018-02-21
- 0.0.1 — 2018-02-21

## README

# ramda-log

Simple logging funtions for Ramda

## logToConsole

`logToConsole` will output whatever value it receives to `console.log`:

```
const f = compose(
  logToConsole('D'),
  add(1),
  logToConsole('C'),
  add(1),
  logToConsole('B'),
  add(1),
  logToConsole('A'),
)

const result = f(0) // Logs: 'A:0', 'B:1', 'C:2', 'D:3'
result // 4
```

## log

`log` allows you to customise where the value is sent - for example you could route it to a logger. It is used by `logToConsole`:

```
const logToConsole = log(console.log)
```

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