# console-formatted

> This package helps you format your console

Latest version **3.9.15** (published 2021-12-14) · ISC license · 0 weekly downloads

## Install

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

## 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 | 3.9.15 |
| Published | 2021-12-14 |
| First published | 2021-12-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Duckinc |
| Maintainers | gatewayduckyt |
| Keywords | console, format, console.log |

## Links

- npm: https://www.npmjs.com/package/console-formatted
- npm.io page: https://npm.io/package/console-formatted

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 3.9.15 (latest) — 2021-12-14
- 3.8.15 — 2021-12-12
- 3.7.15 — 2021-12-12
- 3.5.15 — 2021-12-10
- 3.5.13 — 2021-12-10
- 2.3.6 — 2021-12-09
- 2.3.5 — 2021-12-09
- 1.3.0 — 2021-12-09
- 1.1.0 — 2021-12-08
- 1.2.0 — 2021-12-08
- 1.0.0 — 2021-12-08

## README

# Setup
```js
//requires and setups the package
const { console } = require('console-formatted')
```
With this you can still use the normal `console.log` it just added th new formated function to it
# Use

```js
console.format.log("Hello World!")

//this also works with: debug, info, warn and error
```
![Console Log Picture](https://shop.samsartonline.net/img/console.png)

if You want to log it without the date use the option  like below

```js
console.format.log('Hello World!', {date: false})
```

![Console No Date](https://shop.samsartonline.net/img/console-nodate.png)

# Override the default color 

If you want to override the default color u can use the color option like so

```js
console.format.log('Hello World!', {color: "Yellow"})
console.format.log('Hello World!', {color: "Blue"})
console.format.log('Hello World!', {color: "Red"})
```

![Override Colors](https://shop.samsartonline.net/img/overide-colors.png)

# Colors
Colors can be used by calling the color function from the setup on setup u have to add colors to the require satment

like so 
```js
const {console, colors} = require('console-formatted')
```
Then  Colors can be called and used in a console.log function like so

```js
console.log(`${colors.text.Green}Hello ${colors.text.Blue} World${colors.text.Yellow}!${colors.other.Reset}`)
```
You can also call this in the format function like so
```js
console.format.log(`${colors.text.Green}Hello ${colors.text.Blue} World${colors.text.Yellow}!${colors.other.Reset}`)
```

And the output would be

![Colors Output](https://shop.samsartonline.net/img/colors.png)

<a href="https://www.buymeacoffee.com/gatewayduck"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=gatewayduck&button_colour=FFDD00&font_colour=000000&font_family=Lato&outline_colour=000000&coffee_colour=ffffff"></a>

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