{"repo":"sverweij/dependency-cruiser","free":true,"listed":false,"github":"https://github.com/sverweij/dependency-cruiser","clone":"git clone https://github.com/sverweij/dependency-cruiser.git","description":"Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.","language":"JavaScript","stars":7071,"topics":["dependency-cruiser","typescript","javascript","static-analysis","dependency-analysis","dependency-graph","circular-dependencies","jsx","tsx","dependencies"],"license":"MIT","category":"dev-tools","readme_excerpt":"Dependency cruiser Validate and visualise dependencies. With your rules. JavaScript. TypeScript. CoffeeScript. ES6, CommonJS, AMD. What's this do? This runs through the dependencies in any JavaScript, TypeScript, LiveScript or CoffeeScript project and ... - ... validates them against (your own) rules - ... reports violated rules - in text (for your builds) - in graphics (for your eyeballs) As a side effect it can generate dependency graphs in various output formats including cool visualizations you can stick on the wall to impress your grandma. How do I use it? Install it ... ... and generate a config This will look around in your environment a bit, ask you some questions and create a .dependency-cruiser.js configuration file attuned to your project[^1][^2]. [^1]: We're using npx in the example scripts for convenience. When you use the commands in a script in package.json it's not necessary to prefix them with npx . [^2]: If you don't want to use npx , but instead pnpx (from the pnpm package manager) or yarn - please refer to that tool's documentation. Particularly pnpx has semantics that differ from npx quite significantly and that you want to be aware of before using it. In the mean time: npx should work even when you installed the dependency with a package manager different from npm . Show stuff to your grandma To create a graph of the dependencies in your src folder, you'd run dependency cruiser with output type dot and run GraphViz dot [^3] on the result. In a one liner:","default_branch":null,"files":null,"tree":[],"storefront":"/r/sverweij","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sverweij/dependency-cruiser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}