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

ramda-log

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramda-log

Simple log functions for ramda

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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)

FAQs

Package last updated on 21 Feb 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