# console-pretty-group

> console.group prettier

Latest version **1.0.1** (published 2018-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install console-pretty-group
pnpm add console-pretty-group
yarn add console-pretty-group
bun add console-pretty-group
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-07-26 |
| First published | 2018-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Doğu Emre DEMİRÇİVİ |
| Maintainers | demircivi |
| Keywords | group, console.group, pretty, indent |

## Links

- npm: https://www.npmjs.com/package/console-pretty-group
- Repository: https://github.com/Demircivi/node-console-pretty-group
- Homepage: https://github.com/Demircivi/node-console-pretty-group#readme
- Issues: https://github.com/Demircivi/node-console-pretty-group/issues
- npm.io page: https://npm.io/package/console-pretty-group

## Recent versions

- 1.0.1 (latest) — 2018-07-26
- 1.0.0 — 2018-07-26

## README

# node-console-pretty-group
better console.group

# Quick Start
To install this package and add it to your `package.json` execute following command.
You can remove `--save` argument if you don't want to save it as dependency for your package.
```
npm install console-pretty-group --save
```

# Enabling Package
To enable formatting for your console commands you need to attach package.
Execute following command to do this.
```
require("console-pretty-group").attach();
```

Also you can detach package with following command.
```
require("console-pretty-group").detach();
```

# Examples
After attaching the library you can start using it.

### Basic Usage
```
console.group("group 1");
console.log("test");
console.groupEnd();
```

#### This block will display this in your console,
```
group 1: {
	test
}
```

### Nested Usage
```
console.group("group 1");
console.group("group 2");
console.log("test");
console.log("test 2");
console.groupEnd();
console.groupEnd();
```

#### This block will display this in your console,
```
group 1: {
	group 2: {
		test
		test 2
	}
}
```

# Contribution
I think there is not much to add to this package but of course I'm welcome to pull requests.

Please make sure you read this before contributing,
[Contribution guidelines for this project](CONTRIBUTING.md)

## License
[MIT](LICENSE)

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