# log-with-colors

> simple syntax for logging to console using colors, based on chalk

Latest version **1.0.7** (published 2017-02-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install log-with-colors
pnpm add log-with-colors
yarn add log-with-colors
bun add log-with-colors
```

## 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.7 |
| Published | 2017-02-06 |
| First published | 2017-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | al-lopes |
| Maintainers | al-lopes |
| Keywords | log, console.log, console, colors, chalk |

## Links

- npm: https://www.npmjs.com/package/log-with-colors
- Repository: https://github.com/al-lopes/log-with-colors
- Homepage: https://github.com/al-lopes/log-with-colors#readme
- Issues: https://github.com/al-lopes/log-with-colors/issues
- npm.io page: https://npm.io/package/log-with-colors

## Dependencies (1)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.7 (latest) — 2017-02-06
- 1.0.6 — 2017-02-06
- 1.0.5 — 2017-02-06
- 1.0.4 — 2017-02-06
- 1.0.3 — 2017-02-05
- 1.0.2 — 2017-02-05
- 1.0.1 — 2017-02-05
- 1.0.0 — 2017-02-05

## README

# log-with-colors
Log with colors is a simple syntax to colored console log, based on [chalk](https://github.com/chalk/chalk)
```javascript
log.green('This will log to console in green')
```
![](https://github.com/al-lopes/log-with-colors/blob/master/README.png?raw=true)

## Install

```console
$ npm i -S log-with-colors
```

## Usage

```javascript
const log = require('log-with-colors')
```
```javascript
log.success('Hello World') //logs to the console in green
```

## API

| Function      | Type          | Info          |
| ------------- |:-------------:|:-------------:|
| log()         | default       | Prints with process.stdout |
| log.error()   | error         | Prints with process.stderr |
| log.success() | color         | Equals to log.green()   |
| log.warn()    | color         | Equals to log.yellow()  |
| log.info()    | color         | Equals to log.cyan()    |

| Function      | Type          |
| ------------- |:-------------:|
| log.gray()    | color         |
| log.blue()    | color         |
| log.cyan()    | color         |
| log.green()   | color         |
| log.yellow()  | color         |
| log.red()     | color         |
| log.magenta() | color         |

## License
MIT © [Alexandre Lopes](https://alexandrelopes.design)

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