# trace-console-log

> Have a stray console.log but too lazy to find it?

Latest version **1.0.0** (published 2019-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install trace-console-log
pnpm add trace-console-log
yarn add trace-console-log
bun add trace-console-log
```

## 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.0 |
| Published | 2019-10-16 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 68 |
| Author | Mathias Buus |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/trace-console-log
- Repository: https://github.com/mafintosh/trace-console-log
- Issues: https://github.com/mafintosh/trace-console-log/issues
- npm.io page: https://npm.io/package/trace-console-log

## Dependencies (1)

- [what-line-is-this](https://npm.io/package/what-line-is-this.md) ^2.0.0

## Recent versions

- 1.0.0 (latest) — 2019-10-16

## README

# trace-console-log

Have a stray console.log but too lazy to find it?

trace-console-log is here to help

```
npm install trace-console-log
```

## Usage

Simply require it and it will prefix any console.log/error with the
file and line it was printed from.

``` js
node -r trace-console-log my-program.js
```

For example assuming the following is called app.js

``` js
console.log('hi!')
```

Running this with `-r trace-console-log` prints

```
app.js:1 - hi!
```

Easy!

## License

MIT

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