0.9.1 • Published 5 years ago

ratatoskr-log v0.9.1

Weekly downloads
260
License
MIT
Repository
github
Last release
5 years ago

Ratatoskr

Shorthand to avoid object Object log in Node.js. Useful when working with deep object hierarchy.

Simple package for times when you are too lazy to remember how util.inspect worked.

Install

yarn add ratatoskr-log

Usage

Ratatoskr givers versions of common log functions, that do not have limits for depth. Log the whole object without object Object confusion.

const { log } = require('ratatoskr-log')

const massiveObject = { // Deep hierarchy }

log(massiveObject)

Ratatoskr also gives common variants of log:

const { debug, error, info, warn, table } = require('ratatoskr-log')

const massiveObject = { // Deep hierarchy }

debug(massiveObject)
error(massiveObject)
info(massiveObject)
warn(massiveObject)
table(massiveObject)

What's in the name?

"Ratatoskr" is a squirrel in Norse mythology, that runs up and down the world tree Yggdrasil. It carries insults between an eagle and the serpent Níðhöggr. "Insult" seems accurate way to describe the limitations of basic console.log.

0.9.1

5 years ago

0.9.0

5 years ago