Socket
Socket
Sign inDemoInstall

q-i

Package Overview
Dependencies
8
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

9

index.js

@@ -15,2 +15,4 @@ const _ = require('lodash');

const getFunctionSize = o => typeof o === 'function' && o.toString().split('\n').length;
const getConstructor = v => {

@@ -47,3 +49,3 @@ if (v === null) {

const { maxItems = 30 } = options || {};
const { maxItems = 30, maxLines = 1 } = options || {};

@@ -65,2 +67,7 @@ return stringifyObject(object, {

const functionSize = getFunctionSize(value);
if (functionSize > maxLines) {
return style(`Function ${value.name || ''}`, 'dim');
}
const ctr = getConstructor(value);

@@ -67,0 +74,0 @@

6

package.json
{
"name": "q-i",
"version": "1.1.0",
"version": "1.1.1",
"description": "Node.js objects inspector with color highlighting",

@@ -9,4 +9,4 @@ "author": {

},
"homepage": "https://github.com/sapegin/Artem Sapegin",
"repository": "sapegin/Artem Sapegin",
"homepage": "https://github.com/sapegin/q-i",
"repository": "sapegin/q-i",
"license": "MIT",

@@ -13,0 +13,0 @@ "engines": {

@@ -15,2 +15,3 @@ # q-i: Node.js objects inspector with color highlighting

* Color highlighted
* Prints the whole object or only the part you need
* Collapses huge arrays and objects (more than 30 items by default)

@@ -17,0 +18,0 @@

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