Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minijack

Build Status Dependency Status devDependency Status

Inline logging inspired by Elm's Debug.log

Get Started

npm install minijack

API

minijack(value [, substn, ..., fn])

Passes value and substn to console.log or fn, and then returns value.

  • value: First value passed to the logging function, and then returned. (Any)
  • substn: Optional. Subsequent values passed to the logging function. (Any)
  • fn: Optional. Logging function to use. Default is console.log. (Function)

Usage

const minijack = require('minijack')

const value = minijack(value)
// → Logs and returns value.

const value = minijack(value, console.error)
// → Logs value using console.error. Returns value.

const value = minijack(value, 'is the sample value', console.error)
// → Logs value and 'is the sample value' using console.error. Returns value.

License

See the License file.

About

Your inline logging bystander.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages