# @webb/console

> Print console messages in STYLE.

Latest version **2021.5.28** (published 2021-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @webb/console
pnpm add @webb/console
yarn add @webb/console
bun add @webb/console
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2021.5.28 |
| Published | 2021-05-28 |
| First published | 2020-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | netop://ウエハ |
| Maintainers | netoperatorwibby |

## Links

- npm: https://www.npmjs.com/package/@webb/console
- Repository: https://github.com/NetOperatorWibby/console
- Issues: https://github.com/NetOperatorWibby/console/issues
- npm.io page: https://npm.io/package/@webb/console

## Recent versions

- 2021.5.28 (latest) — 2021-05-28
- 2020.8.4 — 2020-08-04
- 2020.4.15 — 2020-04-16
- 2020.3.29 — 2020-03-29
- 2020.3.10 — 2020-03-11
- 2020.3.9 — 2020-03-10

## README

# @webb/console

> Print console messages in **STYLE**.



## Install

```sh
$ npm i @webb/console
```



## Usage

```js
// Import the default export
import print from "@webb/console";

console.log(print.cyan("This text is cyan"));

// You can also nest styles!
console.log(print.green(print.bold("This text is bold and green")));
```

```js
// Or, export the named function
import { print } from "@webb/console";

console.log(print.cyan("This text is cyan"));

// You can also nest styles!
console.log(print.green(print.bold("This text is bold and green")));
```



## API

### print.[parameter]\(input);
#### [parameter]

Type: `enum`

Available options:

##### Color
- black | blackLine
- blue | blueLine
- cyan | cyanLine
- gray | grayLine OR grey | greyLine
- green | greenLine
- magenta | magentaLine
- red | redLine
- white | whiteLine
- yellow | yellowLine

##### Decoration
- bold
- dim
- invert
- underline

### input

Type: `string`



## Tests

```sh
# Run all tests, sequentially
$ npm test

# Test dependencies for latest versions
$ npm run test:dependencies

# Lint "src" directory
$ npm run test:typescript

# Test this module
$ npm run test:assert

# Not really a test, just shows a 20x9 rainbow-esque banner
$ npm run showcase
```



## Support

I don't drink coffee so if you like this module and want to support me, feel free to send some HNS to `hs1q98ddwl2lcpnnzfvvrqad80qu97w0q72cyq2uy3`!

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