# console-wizard

> A minimal yet colorful and customizable alternative to javascript's default logger.

Latest version **1.4.4** (published 2026-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install console-wizard
pnpm add console-wizard
yarn add console-wizard
bun add console-wizard
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.4.4 |
| Published | 2026-04-06 |
| First published | 2023-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sushant Ray |
| Maintainers | _goodboyneon |
| Keywords | javascript, typescript, logger, log, console, console-wizard |

## Links

- npm: https://www.npmjs.com/package/console-wizard
- Repository: https://github.com/GoodBoyNeon/console-wizard
- Homepage: https://github.com/GoodBoyNeon/console-wizard#readme
- Issues: https://github.com/GoodBoyNeon/console-wizard/issues
- npm.io page: https://npm.io/package/console-wizard

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.4.4 (latest) — 2026-04-06
- 1.4.3 — 2024-04-14
- 1.4.2 — 2023-07-15
- 1.4.1 — 2023-07-15
- 1.4.0 — 2023-07-13
- 1.3.2 — 2023-06-22
- 1.3.1 — 2023-06-20
- 1.3.0 — 2023-06-19
- 1.2.0 — 2023-06-18
- 1.1.0 — 2023-06-17
- 1.0.0 — 2023-06-17
- 0.0.1 — 2023-06-17

## README

<div align="center">
	<br />
	<p>
    <h1 align="center">🌈 Console Wizard</h1>
  <h6 align="center">🚀 A minimal yet colorful and customizable alternative to javascript's default logger.</h6>
	</p>
	<br />
	<p>
    <a href="https://www.npmjs.com/package/console-wizard"><img src="https://img.shields.io/npm/v/console-wizard?style=flat-square&logo=npm"</a>
		<a href="https://www.npmjs.com/package/console-wizard"><img src="https://img.shields.io/npm/dt/console-wizard?style=flat-square&logo=npm"/></a>
    <a href="https://www.github.com/GoodBoyNeon/console-wizard"><img src="https://img.shields.io/github/issues/GoodBoyNeon/console-wizard?style=flat-square&logo=github" /></a>
    <a href="https://www.github.com/GoodBoyNeon/console-wizard"><img src="https://img.shields.io/github/issues-pr/GoodBoyNeon/console-wizard?style=flat-square&logo=github" /></a>
    <a href="https://www.github.com/GoodBoyNeon/console-wizard"><img src="https://img.shields.io/github/actions/workflow/status/GoodBoyNeon/console-wizard/build.yml?style=flat-square&logo=github" /></a>
	</p>
</div>

#### Contents

<!--toc:start-->

- [Installation](#installation)
- [Usage](#usage)
  - [Output:](#output)
- [Configuration](#configuration)
  - [Configuring each log statement](#configuring-each-log-statement)
- [Author](#author)
- [License](#license)
<!--toc:end-->

---

## Installation

```py
npm install console-wizard --save
# or
yarn add console-wizard
```

## Usage

```js
import { logger } from 'console-wizard';

logger.error('Invalid syntax for database query!');
logger.info('Environment: Development');
logger.success('All tests passed!');
logger.warn('getDataById() has been depreciated! Use getData instead()');
```

#### Output:

![image](https://github.com/GoodBoyNeon/console-wizard/assets/93624576/fdee992a-bab8-4b97-9a4a-2d7736867237)

### Tables:

```js
import { logger } from 'console-wizard';

logger.table([
  { name: 'David Lesten', age: 24, occupation: 'Full stack Developer' },
  { name: 'Mark Nimz', age: 32, occupation: 'Backend Developer' },
  { name: 'Lucy Haris', age: 28, occupation: 'Data Scientist' },
  { name: 'Joe Lewis', age: 23, occupation: 'UI/UX Designer' },
  { name: 'Robert Wilson', age: 19, occupation: 'Frontend Developer' },
]);
```

### Output:

![tables](./docs/img/table.png)

## Configuration

You can set up the user default configuration by:

```js
import { setWizardConfig } from 'console-wizard';

setWizardConfig({
  /* Weather to include timestamp in the log */
  includeTimestamp: true,

  /* Weather to include status in the log (Ex. "ERROR", "WARN" etc) */
  includeStatus: true,
});
```

The above configuration would apply for all the loggers in the codebase, except for the ones that have their own configuration (more on that here: [#Configuring each log statement]())

**Note that configuring Console Wizard is completely optional!** It ships with the above configuration by default!

#### Configuring each log statement

Additionally, you can also configure each log statement. For example

```js
import { logger } from 'console-wizard';

logger.info('New GET request on /v1/users', {
  includeTimestamp: false,
});
```

> If both user default configuration (using WizardConfig class) and inline configuration are provided, the configurations are combined with inline one being superior.

## Author

- [GoodBoyNeon](https://neon.is-a.dev/)

## License

[MIT License](https://mit-license.org/)

---
_Source: https://npm.io/package/console-wizard · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
