# alvarocabreradam-logit

> Log everything with style!

Latest version **0.0.9** (published 2019-09-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install alvarocabreradam-logit
pnpm add alvarocabreradam-logit
yarn add alvarocabreradam-logit
bun add alvarocabreradam-logit
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2019-09-21 |
| First published | 2019-09-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | alvarocabreradam |

## Links

- npm: https://www.npmjs.com/package/alvarocabreradam-logit
- npm.io page: https://npm.io/package/alvarocabreradam-logit

## Dependencies (1)

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

## Recent versions

- 0.0.9 (latest) — 2019-09-21
- 0.0.8 — 2019-09-21
- 0.0.7 — 2019-09-21
- 0.0.6 — 2019-09-14
- 0.0.5 — 2019-09-14
- 0.0.4 — 2019-09-14
- 0.0.3 — 2019-09-14
- 0.0.2 — 2019-09-14
- 0.0.1 — 2019-09-13

## README

# Logit

Logit is a simple module to improve your application log.

## Changelog

# 0.0.9 :

Now the module works for vanilla JavaScript.

# 0.0.9 :

Now the module prints objects properly.

## Installation

```bash
npm install alvarocabreradam-logit
```

## Usage

Vanilla JavaScript
```
const Logit = require('alvarocabreradam-logit');
const logit = new Logit('App Name');
```

TypeScript
```
import Logit from 'alvarocabreradam-logit';
const logit: Logit = new Logit('App Name');
```

## Functions
```
// Enable logs
logit.active();
```
```
// Change the log header for the specified string
logit.setHeader('logit');
```
```
// Enable show date time in log
logit.enableDate();
```
```
// Enable show time in ms since the program was started
logit.enableTimer();
```
```
// Clasic white log
logit.info('Info');
// Green log
logit.success('Info');
// Red log
logit.error('Info');
// Yellow log
logit.warning('Info');
```

## License
This project has [ISC](https://choosealicense.com/licenses/isc/) license.

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