# @jsenv/log

> Nice and dynamic logs in the terminal

Latest version **3.5.2** (published 2024-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jsenv/log
pnpm add @jsenv/log
yarn add @jsenv/log
bun add @jsenv/log
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.5.2 |
| Published | 2024-01-15 |
| First published | 2021-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=16.14.0 |
| Dependencies | 5 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36 |
| Author | dmail |
| Maintainers | jsenv-admin, dmail |

## Links

- npm: https://www.npmjs.com/package/@jsenv/log
- Repository: https://github.com/jsenv/core
- Homepage: https://github.com/jsenv/core#readme
- Issues: https://github.com/jsenv/core/issues
- npm.io page: https://npm.io/package/@jsenv/log

## Dependencies (5)

- [ansi-escapes](https://npm.io/package/ansi-escapes.md) 6.2.0
- [string-width](https://npm.io/package/string-width.md) 7.0.0
- [@jsenv/inspect](https://npm.io/package/@jsenv/inspect.md) 2.0.0
- [supports-color](https://npm.io/package/supports-color.md) 9.4.0
- [is-unicode-supported](https://npm.io/package/is-unicode-supported.md) 2.0.0

## Recent versions

- 3.5.2 (latest) — 2024-01-15
- 3.5.1 — 2024-01-12
- 3.4.3 — 2023-11-17
- 3.4.2 — 2023-11-08
- 3.4.1 — 2023-10-04
- 3.4.0 — 2023-06-12
- 3.3.5 — 2023-05-16
- 3.3.4 — 2023-03-17
- 3.3.3 — 2022-12-22
- 3.3.2 — 2022-12-13
- 3.3.1 — 2022-09-21
- 3.3.0 — 2022-08-11
- 3.2.0 — 2022-08-04
- 3.1.0 — 2022-07-08
- 3.0.2 — 2022-07-07
- … 16 more at https://npm.io/package/@jsenv/log/versions

## README

# Log [![npm package](https://img.shields.io/npm/v/@jsenv/log.svg?logo=npm&label=package)](https://www.npmjs.com/package/@jsenv/log)

This packages is used by jsenv to create beautiful logs in the console. It is available as a standalone package to be used in other contexts.

This package helps to:

- add symbols via unicode
- make dynamic logs
- add color to logs

# Task log example

(Click image to play the gif)

![img](./docs/demo_task.gif)

Code used to produce these logs:

```js
import { createTaskLog } from "@jsenv/log";

const task = createTaskLog("Doing something");
setTimeout(() => {
  task.done();
}, 1_000);
```

# Unicode example

![img](./docs/demo_unicode.png)

Code used to produce these logs:

```js
import { UNICODE } from "@jsenv/log";

console.log(`${UNICODE.COMMAND} cd dir/`);
console.log(`${UNICODE.DEBUG} debug`);
console.log(`${UNICODE.INFO} info`);
console.log(`${UNICODE.WARNING} warning`);
console.log(`${UNICODE.FAILURE} failure`);
console.log(`${UNICODE.OK} ok`);
```

# Installation

```console
npm install @jsenv/log
```

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