1. q-i
Node.js objects inspector with color highlighting
q-i
Package: q-i
Created by: sapegin
Last modified: Fri, 13 May 2022 18:28:28 GMT
Version: 2.0.1
License: MIT
Downloads: 290,155
Repository: https://github.com/sapegin/q-i

Install

npm install q-i
yarn add q-i

q-i: Node.js objects inspector with color highlighting

npm
Build Status

Useful for debugging big objects, like webpack configuration.

Features

  • Compact and readable output
  • No unnecessary quotes
  • Color highlighted
  • Collapses huge arrays and objects (more than 30 items by default)

Installation

 npm install q-i

Usage

 const { print, stringify } = require('q-i');

const obj = { a: { x: 41, y: { z: 42 } } };

print(obj);
console.log(stringify(obj));
/* =>
{
  a: {
    x: 41,
    y: {
      z: 42
    }
  }
}
*/

Options

 print(obj, { maxItems: Infinity })
stringify(obj, { maxItems: Infinity })

maxItems (default: 30)

Collapse arrays with more than maxItems items and objects with more than maxItems keys.

Change log

The change log can be found on the Releases page.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code