ratatoskr-log

0.9.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i ratatoskr-log

Weekly Downloads

0

Version

0.9.1

License

MIT

Unpacked Size

53 kB

Total Files

7

Last publish

Collaborators

  • stscoundrel