Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sapegin/q-i
Node.js objects inspector with color highlighting
https://github.com/sapegin/q-i
debugging inspection nodejs objects
Last synced: 7 days ago
JSON representation
Node.js objects inspector with color highlighting
- Host: GitHub
- URL: https://github.com/sapegin/q-i
- Owner: sapegin
- License: mit
- Created: 2017-09-19T14:06:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T14:49:51.000Z (about 2 months ago)
- Last Synced: 2024-06-18T14:07:30.560Z (18 days ago)
- Topics: debugging, inspection, nodejs, objects
- Language: JavaScript
- Homepage:
- Size: 441 KB
- Stars: 63
- Watchers: 5
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- Contributing: Contributing.md
- License: License.md
Lists
- awesome-stars - q-i - Node.js objects inspector with color highlighting (JavaScript)
README
# q-i: Node.js objects inspector with color highlighting
[![npm](https://img.shields.io/npm/v/q-i.svg)](https://www.npmjs.com/package/q-i)
[![Build Status](https://travis-ci.org/sapegin/q-i.svg)](https://travis-ci.org/sapegin/q-i)Useful for debugging big objects, like webpack configuration.
![](https://d3vv6lp55qjaqc.cloudfront.net/items/0S1R2F1u1i1E2h2z0R41/q-i.png)
## Features
* Compact and readable output
* No unnecessary quotes
* Color highlighted
* Collapses huge arrays and objects (more than 30 items by default)## Installation
```bash
npm install q-i
```## Usage
```js
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
```js
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](https://github.com/sapegin/q-i/releases).
## Contributing
Everyone is welcome to contribute. Please take a moment to review the [contributing guidelines](Contributing.md).
## Sponsoring
This software has been developed with lots of coffee, buy me one more cup to keep it going.
## Authors and license
[Artem Sapegin](http://sapegin.me) and [contributors](https://github.com/sapegin/q-i/graphs/contributors).
MIT License, see the included [License.md](License.md) file.