# require-logger

> tiny utility to help when debugging cyclic dependency issues in node.js

Latest version **0.0.2** (published 2019-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install require-logger
pnpm add require-logger
yarn add require-logger
bun add require-logger
```

## 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.0.2 |
| Published | 2019-04-09 |
| First published | 2019-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | capajj@gmail.com |
| Maintainers | capaj |
| Keywords | require, dependency, logging, cyclic |

## Links

- npm: https://www.npmjs.com/package/require-logger
- Repository: https://github.com/capaj/require-logger
- Homepage: https://github.com/capaj/require-logger#readme
- Issues: https://github.com/capaj/require-logger/issues
- npm.io page: https://npm.io/package/require-logger

## Dependencies (2)

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

## 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

- 0.0.2 (latest) — 2019-04-09
- 0.0.1 — 2019-03-11

## README

# require-logger

tiny utility to visualize whole dependency tree and possibly help with debugging cyclic dependency issues in node.js

## Install

```
npm i require-logger -g
```

I found that I need this module when debugging circular dependencies. Since other developers on your team might have different tools for this it's probably best to install as global dep.

## Usage

Just require or import at the root file of your app.

```js
require('require-logger')
```

next time you run your app, you should see a tree of dependencies as they are loaded in the STDOUT.
`node_modules` folder deps are skipped. Only local files are shown.
In the tree it's easy to spot cyclic deps and also parent modules which can be broken into multiple modules.

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