y

0.3.2 • Public • Published

y

Sometimes you just want to see the content of an object and not be to ugly and verbose about it. This is a simple node module to help with that.

Usage

require('y')(somethingToInpect)

You can inspect multiple objects.

require('y')(obj1, obj2);

The default recursion depth of an inspected object is 2. This can be change by calling the set() function with a new settings object.

require('y').set({depth: 4});
require('y')(obj);

To make it recurse indefinitely set depth to null.

var y = require('y').set({depth: null});
y(obj);

Readme

Keywords

Package Sidebar

Install

npm i y

Weekly Downloads

727

Version

0.3.2

License

MIT

Last publish

Collaborators

  • eliasgs