Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sahiltalwar88/tap-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tap-log

Log the given prefix and value, then return value. Useful for debugging functional pipelines.

#Example Usage:

const tapLog = require('tap-log')
const R = require('ramda')

R.pipe(
    R.add(2),
    tapLog(),
    R.multiply(3),
    tapLog('final answer')
)(3)
// -> outputs '5' and 'final answer: 15' to console & evaluates to 15

About

Log the given prefix and value, then return value. Useful for debugging functional pipelines.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •