rOACCT/node_modules/q-i49c99f97fe9aissn4frontend
rOACCT/node_modules/q-i
49c99f97fe9aissn4frontend
Readme.md
Readme.md
q-i: Node.js objects inspector with color highlighting
![npm](https://www.npmjs.com/package/q-i) ![Build Status](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.
Contributing
Everyone is welcome to contribute. Please take a moment to review the [contributing guidelines](Contributing.md).
Authors and license
Artem Sapegin and contributors.
MIT License, see the included [License.md](License.md) file.
c4science · Help