New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

verboselog

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

verboselog

A simple way to fully view deeply nested data in the console.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Welcome to verboselog

verboselog was written as a solution to view entire objects or arrays in the console in js. It is a very simple package that you can write your self, but I got sick of writing it so I made it an npm package. Feel free to use your self.

Installation

npm install verboselog

Useage

deelog(data, message)

the first argument is the data you want logged, second is an optional string message you want to connect with data being logged.


var data = {
    test1: "test1",
    test2: {
        a:"a",
        b:"b",
        c:"c",,
        d: {
            d:"d"
            }
        }
    },
    test3: [ [ 'a', 'b'], 'a', [ ['a', 'b',], ['a', 'b'] ], ]
}

console.log('here is your data', data)

Output

here is your data { test1: 'test1',
  test2: { a: 'a', b: 'b', c: 'c', d: { d: 'd' } },
  test3: [ [ 'a', 'b' ], 'a', [ [Array], [Array] ] ] }

verboselog(data, 'here is your data')

Output

here is your data
{ test1: 'test1',
  test2: { a: 'a', b: 'b', c: 'c', d: { d: 'd' } },
  test3: 
   [ [ 'a', 'b', [length]: 2 ],
     'a',
     [ [ 'a', 'b', [length]: 2 ],
       [ 'a', 'b', [length]: 2 ],
       [length]: 2 ],
     [length]: 3 ] }

Keywords

console.log

FAQs

Package last updated on 07 Jan 2019

Did you know?

Socket

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