1.0.2 • Published 6 years ago

@doverdb/wth v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

what-the-hell (wth)

NPM

Getting Started

Install @doverdb/wth using npm.

npm i @doverdb/wth --save

Import the wth component.

var wth = require('@doverdb/wth');

Traverses and prints out an object on each level. Useful for debugging deeply nested objects when you have no idea what is going on. For example:

wth({ a: { b: 'test' } }, 'a.b.c') will print:

initialObject:  { a: { b: 'test' } }
---------------
key: a
value: { b: 'test' }
---------------
---------------
key: b
value: test
---------------
END