# sir-logalot

> A dead simple, declarative logging library to spice up your development life.

Latest version **1.0.1** (published 2017-11-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install sir-logalot
pnpm add sir-logalot
yarn add sir-logalot
bun add sir-logalot
```

## 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 | 2017-11-23 |
| First published | 2017-11-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jacob Worrel |
| Maintainers | jacobworrel |

## Links

- npm: https://www.npmjs.com/package/sir-logalot
- npm.io page: https://npm.io/package/sir-logalot

## Recent versions

- 1.0.1 (latest) — 2017-11-23
- 1.0.0 — 2017-11-06

## README

# sir-logalot
##### A dead simple, declarative Node.js logging library to spice up your development life.
## Usage

```sh
npm install sir-logalot
```
```js
const log = require('sir-logalot');
```
## API
##### log.label(string, variable)
Prints an arrow between label and value of variable.

``` js
const friend = 'fred';
log.label('friend', friend); // prints: friend --> fred
```
##### log.divider()
Prints a string of stars to delineate breakpoints between logs.
``` js
for (let i = 0; i < 2; i += 1) {
  console.log('in outer loop');
  log.divider();
  for (let j = 0; j < 2; j += 1) {
    console.log('in inner loop');
  }
  log.divider();
}
/* prints:
in outer loop
⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️
in inner loop
in inner loop
⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️
in outer loop
⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️
in inner loop
in inner loop
⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️⭐️
*/
```
### Symbols:
![symbols](https://s1.postimg.org/1xd8ta71cv/symbols.png)

You may optionally provide a string as an argument to overwrite the default messages.
##### log.error([msg])
##### log.success([msg])
##### log.warning([msg])
##### log.info([msg])

### ASCII Art:
You may optionally provide a string as an argument to overwrite the default messages.
##### log.frog([msg])
![frog](https://s1.postimg.org/35blmk81hr/frog.png)
##### log.cat([msg])
![cat](https://s1.postimg.org/76c3klxysv/cat.png)
##### log.cow([msg])
![cow](https://s1.postimg.org/5wlxsgecjz/cow.png)

### Emojis:
##### log.emoji(key)
```js
log.emoji('hamburger'); // prints: 🍔
```
For a full list of emoji key-value pairs, check out https://raw.githubusercontent.com/omnidan/node-emoji/master/lib/emoji.json

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