New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

circular-dependency-test

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circular-dependency-test

Detects circular dependencies in modules compiled with Webpack

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

circular-dependency-test

Detects circular dependencies in modules compiled with Webpack.

install

npm install --save-dev circular-dependency-test

or globally:

npm install -g circular-dependency-test

Graphviz (optional)

Only required if you want to generate visual graphs using Graphviz.

Mac OS X
brew install graphviz || port install graphviz
Ubuntu
apt-get install graphviz

run

If your Webpack config is in ./webpack.config.js, run the test from the root directory of your project:

circular-dependency-test

parameters

config

Custom path to Webpack config.

circular-dependency-test --config=config/my-webpack.config.js

exclude

Sets regular expression to exclude files from dependency test. By default it is node_modules. To overwrite it by your custom RegExp run:

circular-dependency-test --exclude='.+\\.types\\.ts|node_modules'

image

Creates dependency graph. Default format is gif.

Requires Graphviz to be installed.

circular-dependency-test --image=reports/dependency-graph.gif

format

Creates dependency graph in desired format. See all formats: https://graphviz.gitlab.io/_pages/doc/info/output.html

Most common image types: gif png svg jp2 jpg pdf

circular-dependency-test --image=reports/dependency-graph.svg --format=svg

timestamp

Saves the image file with a timestamp.

circular-dependency-test --image=reports/dependency-graph.gif --timestamp

project dependencies

For creating visual graphs:

Keywords

FAQs

Package last updated on 23 Apr 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc