Socket
Socket
Sign inDemoInstall

require-logger

Package Overview
Dependencies
8
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    require-logger

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


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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.

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.

Keywords

FAQs

Last updated on 09 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc