# console-decor

> Decorate console functions with timestamps, file path, line number, and object pretty print

Latest version **1.0.1** (published 2018-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install console-decor
pnpm add console-decor
yarn add console-decor
bun add console-decor
```

## 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 | 2018-01-02 |
| First published | 2018-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Bain |
| Maintainers | bainweb |
| Keywords | enhanced, console, logging |

## Links

- npm: https://www.npmjs.com/package/console-decor
- Repository: https://github.com/bainweb/console-decor
- Homepage: https://github.com/bainweb/console-decor#readme
- Issues: https://github.com/bainweb/console-decor/issues
- npm.io page: https://npm.io/package/console-decor

## Dependencies (3)

- [path](https://npm.io/package/path.md) ^0.12.7
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [moment](https://npm.io/package/moment.md) ^2.20.1

## 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.1 (latest) — 2018-01-02
- 1.0.0 — 2018-01-02

## README

# Console Decor

Console function enhancement. Adds timestamp, file path, line number to console log and error calls

## Usage

Call as a function with optional config parameter to override console functions

```
require('console-decor')();
console.log('Hello World');

```

## Config options

### appdir

Manually specify the application directory. Defaults to require.main.filename. Functionally, this parameter is removed from the absolute file path in order to condense the output.

```
require('console-decor')({appdir: ''}); // show absolute path
console.log('Hello World');

```

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