# unjs/consola

🐨 Elegant Console Logger for Node.js and Browser

Repository: https://github.com/unjs/consola
Canonical: https://ross.abutalabs.com/products/consola
Language: TypeScript
License: NOASSERTION
License Family: other
Topics: console, node, terminal, fancy, log, cli
Last push: 2026-08-26T23:03:41+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 40, longevity 100
- inputs: {"age_days": 3077, "days_push": 7, "days_rel": 533, "gap_med": 3.0, "n_releases_24m": 7}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7323, forks 223 (observed 2026-08-28T04:09:58.226953+00:00)

## What it is
Consola is an elegant console logger library for Node.js and browsers that wraps console output with fancy formatting, tags, and pluggable reporters. It also supports interactive prompts, console redirection, log throttling, and mocking.

## Use cases
- pretty-print structured logs in a node cli
- replace console.log with a leveled logger
- add colored tags and icons to terminal output
- redirect console and stdout/stderr to a custom logger
- show interactive confirm and select prompts in the terminal
- log consistently in both browser and node environments

## When to choose
- you want a drop-in, fancy console logger for node or browser apps
- you need pluggable reporters or console redirection
- you want lightweight interactive prompts without a full cli framework

## When to avoid
- you need file-based or structured log shipping to external systems
- you need a full logging pipeline with log aggregation and alerting
- you only need the simplest possible console wrapper with zero dependencies

## Facets
- artifact type: library
- maturity: stable
- function: logging, cli, developer-tools
- domain: developer-tools, web-development
- platform: browser, cross-platform
- tags: console-logger, typescript, reporters, prompts, unjs, command-line, nodejs

## Member repositories
- unjs/consola (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.226953+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:39.293223+00:00, confidence not recorded.
  - readme: https://github.com/unjs/consola (fetched 2026-08-28T04:09:58.226953+00:00, sha 160489faefd7)
  - registry_npm: https://registry.npmjs.org/consola (fetched 2026-08-29T08:34:11.164689+00:00, sha 69398497ef2f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
