Socket
Book a DemoInstallSign in
Socket

auto-console-group

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-console-group

Automagically group console messages

latest
Source
npmnpm
Version
1.2.11
Version published
Weekly downloads
27K
-1.05%
Maintainers
1
Weekly downloads
 
Created
Source
Auto-Console-Group

Introduction

Tame the JS console by automagically grouping console messages.

  • Simple: Drop in replacement for the full console API.
  • Automatic: Groups messages by each Event Loop iteration.
  • Easier Debugging: Makes it much clearer to see what is going on in your app.
  • Adds Time Stamps: Each grouping can be timestamped, to help better see what is happening.
  • Reliable: Uses a Microtask to ensure the message group is always closed on time.

A more readable console output in a couple of minutes.

example output

Above created by example.ts.

Install

Install auto-console-group via npm.

npm install auto-console-group

Or download auto-console-group.js

Setup

The createAutoConsoleGroup() creates a console object with all the same methods as the regular console object, plus a few additional methods to control how a group is displayed.

import createAutoConsoleGroup from 'auto-console-group'

const consoleGroup = createAutoConsoleGroup({ label: 'autoConsoleGroup' })

// All console methods are reflected on consoleGroup
consoleGroup.log('Log message')
consoleGroup.table(['foo', 'bar'])
consoleGroup.count('Counter')

// Set the Event in the group heading
consoleGroup.event('myEvent')

User Guide

NPM © 2025 David J. Bradshaw - License MIT

Keywords

console

FAQs

Package last updated on 29 Aug 2025

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