npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

log-full

v0.1.3

Published

Utility to output entire objects to the console instead of the slimmed down version

Readme

Occasionally I find myself needing to log out deeply nested objects to the console. Sadly, the default logger, console.log() does not expand the entire object if it has many levels of depth.

This package will help you to log objects down to any number of levels.

log-full package outputting deeply nested JSON object

Installation

Add package to your project

yarn add log-full

Import the package in your code. Preferably at the beginning of your app.

require('log-full');

Note: There is no assignment. The package extends console and adds a console.logFull() function.

Usage

require('log-full');

const deepObject = {
   "results" : [
      {
         "address_components" : [
            {
               "long_name" : "1600",
               "short_name" : "1600",
               "types" : [ "street_number" ]
            },
            {
               "long_name" : "Amphitheatre Pkwy",
               "short_name" : "Amphitheatre Pkwy",
               "types" : [ "route" ]
            },
            {
               "long_name" : "Mountain View",
               "short_name" : "Mountain View",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Santa Clara County",
               "short_name" : "Santa Clara County",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "California",
               "short_name" : "CA",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "United States",
               "short_name" : "US",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "94043",
               "short_name" : "94043",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA",
         "geometry" : {
            "location" : {
               "lat" : 37.4224764,
               "lng" : -122.0842499
            },
            "location_type" : "ROOFTOP",
            "viewport" : {
               "northeast" : {
                  "lat" : 37.4238253802915,
                  "lng" : -122.0829009197085
               },
               "southwest" : {
                  "lat" : 37.4211274197085,
                  "lng" : -122.0855988802915
               }
            }
         },
         "place_id" : "ChIJ2eUgeAK6j4ARbn5u_wAGqWA",
         "types" : [ "street_address" ]
      }
   ],
   "status" : "OK"
};

console.log(deepObject);
/*
{ results:
   [ { address_components: [Object],
       formatted_address: '1600 Amphitheatre Parkway, Mountain View, CA 94043, USA',
       geometry: [Object],
       place_id: 'ChIJ2eUgeAK6j4ARbn5u_wAGqWA',
       types: [Object] } ],
  status: 'OK' }
*/

console.logFull(deepObject);
/*
{ results:
   [ { address_components:
        [ { long_name: '1600',
            short_name: '1600',
            types: [ 'street_number' ] },
          { long_name: 'Amphitheatre Pkwy',
            short_name: 'Amphitheatre Pkwy',
            types: [ 'route' ] },
          { long_name: 'Mountain View',
            short_name: 'Mountain View',
            types: [ 'locality', 'political' ] },
          { long_name: 'Santa Clara County',
            short_name: 'Santa Clara County',
            types: [ 'administrative_area_level_2', 'political' ] },
          { long_name: 'California',
            short_name: 'CA',
            types: [ 'administrative_area_level_1', 'political' ] },
          { long_name: 'United States',
            short_name: 'US',
            types: [ 'country', 'political' ] },
          { long_name: '94043',
            short_name: '94043',
            types: [ 'postal_code' ] } ],
       formatted_address: '1600 Amphitheatre Parkway, Mountain View, CA 94043, USA',
       geometry:
        { location: { lat: 37.4224764, lng: -122.0842499 },
          location_type: 'ROOFTOP',
          viewport:
           { northeast: { lat: 37.4238253802915, lng: -122.0829009197085 },
             southwest: { lat: 37.4211274197085, lng: -122.0855988802915 } } },
       place_id: 'ChIJ2eUgeAK6j4ARbn5u_wAGqWA',
       types: [ 'street_address' ] } ],
  status: 'OK' }
*/

Options

An option object can be passed as a second parameter. List of available options follow the util.inspect() function from https://nodejs.org/api/util.html#util_util_inspect_object_options

console.logFull(deepObject, { depth: 3 });

The default options set by the package are:

{
  depth: null, // recurse indefinitely
  colors: true, // colorize output by types
}