Skip to content

adriaan-pelzer/inspect-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

inspect-log

Inspect simply combines the eyes module's inspect method with console.log.

If whatever needs to be logged is a String or a Number, inspect would normally log nothing but an elipsis. This module tests if the message is a String or a Number, and if it is, uses console.log to log it. Otherwise, it uses inspect (which pretty-prints objects and arrays, and print its entire depth)

That's it!

About

Combine eyes.inspector with console.log to provide pretty printing of objects, and normal printing of strings or numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published