Socket
Socket
Sign inDemoInstall

q-i

Package Overview
Dependencies
3
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

q-i

Node.js objects inspector with color highlighting


Version published
Maintainers
1
Weekly downloads
66,489
decreased by-10.99%

Weekly downloads

Readme

Source

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.

Keywords

FAQs

Last updated on 20 Dec 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc