Madge circular dependency detection for node.js


Madge is a tool which detects circular dependencies in your javascript imports.

It’s a handy additional linting tool that can be added to your NodeJS build/CI toolchain.

https://www.npmjs.com/package/madge

Example usage

package.json

{
  "...": "",
  "scripts": {
    "circular-check": "madge --extensions ts --circular --no-color --no-spinner --warning --ts-config ./tsconfig.json src",
    "...": ""
  }
}