# tn-consoler

> Stylish console for browsers

Latest version **2.2.0** (published 2021-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install tn-consoler
pnpm add tn-consoler
yarn add tn-consoler
bun add tn-consoler
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2021-05-10 |
| First published | 2020-05-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 33.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Turnova |
| Maintainers | turnova |
| Keywords | console |

## Links

- npm: https://www.npmjs.com/package/tn-consoler
- npm.io page: https://npm.io/package/tn-consoler

## Dependencies (2)

- [tn-case](https://npm.io/package/tn-case.md) ^3.0.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.10.4

## Recent versions

- 2.2.0 (latest) — 2021-05-10
- 2.1.2 — 2020-07-09
- 2.1.1 — 2020-07-09
- 2.1.0 — 2020-07-05
- 2.0.5 — 2020-06-23
- 2.0.4 — 2020-06-19
- 2.0.3 — 2020-06-18
- 2.0.2 — 2020-06-18
- 2.0.1 — 2020-06-18
- 2.0.0 — 2020-06-18
- 1.4.0 — 2020-06-18
- 1.3.1 — 2020-06-09
- 1.3.0 — 2020-06-09
- 1.2.1 — 2020-06-06
- 1.2.0 — 2020-05-27
- … 6 more at https://npm.io/package/tn-consoler/versions

## README

<p align="center"><i>Bundle Size - 2.02 Kb gzipped</i></p>

## Usage

```ts
import { consoler } from 'tn-consoler'
consoler.log(`Wow {bgcyan+b:text}`, options, ...others)
```

## Methods

- `consoler.log()`
- `consoler.warn()`
- `consoler.error()`
- `consoler.trace()`
- `consoler.group()`
- `consoler.groupCollapsed()`
- `consoler.groupEnd()`

## Syntax

```ts
;`{tag:text}``{tag+tag+tag:text}``{tag:with \\{\\:\\} scapes}`
```

## Tags

- **Colors :** dark, light, red, cyan, green, white, orange, purple, yellow, grey
- **Background Colors :** bgdark, bglight, bgred, bgcyan, bggreen, bgwhite, bgorange, bgpurple, bgyellow, bggrey
- **Others :** b, nb, i, ni, u, nu

## Options

```ts
const options = {
  $global: ['tag', 'tag', { fontSize: '25px' }],
  custom: { fontWeight: 'bold' },
  custom2: ['bgred', 'b', {...}]
}
```

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