# consoler

> a smart console logger and debugger for your litter scripts

Latest version **0.2.0** (published 2014-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install consoler
pnpm add consoler
yarn add consoler
bun add consoler
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-09-10 |
| First published | 2013-08-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | turing |
| Maintainers | turing |
| Keywords | console, consoler, color, logger |

## Links

- npm: https://www.npmjs.com/package/consoler
- Repository: https://github.com/turingou/consoler
- Issues: https://github.com/turingou/consoler/issues
- npm.io page: https://npm.io/package/consoler

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ~0.6.2

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 0.2.0 (latest) — 2014-09-10
- 0.0.8 — 2014-01-08
- 0.0.7 — 2014-01-03
- 0.0.6 — 2013-09-14
- 0.0.5 — 2013-09-05
- 0.0.4 — 2013-09-05
- 0.0.3 — 2013-08-31
- 0.0.2 — 2013-08-31
- 0.0.1 — 2013-08-31
- 0.0.0 — 2013-08-31

## README

![logo](http://ww2.sinaimg.cn/large/61ff0de3gw1e85z78fu6lj200w00w741.jpg) consoler ![npm](https://badge.fury.io/js/consoler.png)
---
another smart and colorful console logger

![screenshot](http://ww1.sinaimg.cn/large/61ff0de3gw1e8bic1y1zfj20lv0dxmz2.jpg)

### How to install

````
$ npm install consoler
````

### Sample code

```javascript
var consoler = require('consoler');

// check out in your console
consoler.log('success','hey dude, well done !');

// or use default tag
consoler.log('hey dude, well done !');

// or use shortcuts
consoler.success('success!');
consoler.error('fail!');
consoler.loading('wait a moment!');
```

### Run demos

```
$ git clone https://github.com/turingou/consoler.git
$ cd consoler/demo
$ node demo.js
```

### Text align

text align defalut length is 8, try to change edge length like this:
```javascript
consoler.align(20);
```

### Colors Map

feel free to add your labels and colors in `./colors.json` or add your event and the color

```javascript
var consoler = require('consoler');
consoler.add('alldone','green');
```

### Run unit-test (Mocha)

```
$ git clone https://github.com/turingou/consoler.git
$ cd consoler
$ npm install 
$ npm test
```

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