q-i

WebJar for q-i

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

q-i
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

q-i
WebJar for q-i
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sapegin/q-i

Download q-i

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/q-i/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>q-i</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/q-i/
implementation 'org.webjars.npm:q-i:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/q-i/
implementation ("org.webjars.npm:q-i:2.0.1")
'org.webjars.npm:q-i:jar:2.0.1'
<dependency org="org.webjars.npm" name="q-i" rev="2.0.1">
  <artifact name="q-i" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='q-i', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "q-i" % "2.0.1"
[org.webjars.npm/q-i "2.0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : ansi-styles jar [3.2.0,4)
org.webjars.npm : is-plain-object jar [2.0.4,3)
org.webjars.npm : stringify-object jar [3.2.0,4)

Project Modules

There are no modules declared in this project.

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.

Sponsoring

This software has been developed with lots of coffee, buy me one more cup to keep it going.

Buy Me A Coffee

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

Versions

Version
2.0.1