dependency-cruiser

Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD. (by sverweij)

Dependency-cruiser Alternatives

Similar projects and alternatives to dependency-cruiser

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better dependency-cruiser alternative or higher similarity.

dependency-cruiser reviews and mentions

Posts with mentions or reviews of dependency-cruiser. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-25.
  • Taking Frontend Architecture Serious with dependency-cruiser
    2 projects | dev.to | 25 Sep 2023
    With dependency-cruiser, you can enforce which imports are allowed. This enables you to create an architecture fitness function that ensures your code continues to adhere to the initial design. You can also visualize your dependencies to gain a clearer understanding of your code's actual structure, allowing you to compare it with your mental model and make improvements where necessary.
  • Visualisation tool
    3 projects | /r/reactjs | 28 Jun 2023
    something like https://github.com/sverweij/dependency-cruiser maybe https://github.com/pahen/madge or https://github.com/antoine-coulon/skott
  • [AskJS] What ESLint rules do you use to achieve better isolation of components?
    3 projects | /r/javascript | 7 Feb 2023
    I've personally fallen in love with Dependency Cruiser, which lets you set any arbitrary import rules you want on your repository. With it, you can enforce common things, like, "You can only import through the index file, if one exists", but you can also make custom-tailored rules for your specific project. For example, maybe your project is divided into three large folders - folder1 is allowed to import from folder2 and folder3, folder2 can import from folder3, and folder3 can not import from anyone else. Well, you can enforce that too, or whatever you need.
  • Best Practices for TypeScript Monorepo
    11 projects | news.ycombinator.com | 25 Aug 2022
    Dependency Cruiser works great, can even render visuals:

    https://github.com/sverweij/dependency-cruiser

    NX[0] also has logic for handling this issue

    [0]: https://nx.dev/

  • how to automatically run a script / yarn command before each dev hot-reload build
    1 project | /r/nextjs | 2 Jul 2022
    I have a dependency-cruiser script that enforces codebase import rules, which I want checked on each dev hot-reload build and prod build.
  • Deprank: Use PageRank to find the most important files in your codebase
    3 projects | news.ycombinator.com | 1 Jul 2022
    Great project!

    One feature request: Running the npx command searched only for the js files, not for the ts files. When I built deprank locally with yarn, it also showed the ts files. After looking at dependency-cruiser figure it has to do with what typescript compilers are available where.

    It would be great if the npx command you provide in your readme would work regardless of my local setup - dependency-cruiser has documentation and one example of a suitable npx command here: https://github.com/sverweij/dependency-cruiser/blob/develop/...

    My suggestion would be to check if any ts file is part of the extension option (i.e. --ext=".js,.jsx, .ts, .tsx") and only then do the magic needed to also show ts files.

  • How We Migrated from Javascript and Flow to TypeScript at Osome
    4 projects | dev.to | 23 Apr 2022
    The first step is to install dependency-cruiser.
  • Is it possible to generate a flow diagram from Javascript code?
    3 projects | /r/vscode | 6 Sep 2021
    You may have a look at dependency cruiser.
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 25 Apr 2024
    Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →

Stats

Basic dependency-cruiser repo stats
8
4,955
9.3
11 days ago

Sponsored
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com