# Is there a library/automated approach to enforce the directions of imports/exports?

**URL:** <https://forum.devtalk.com/t/is-there-a-library-automated-approach-to-enforce-the-directions-of-imports-exports/43944>\
**Category:** Frontend Questions/Help\
**Tags:** elixir, typescript\
**Created:** [8 March 2022 14:37 UTC](https://forum.devtalk.com/t/is-there-a-library-automated-approach-to-enforce-the-directions-of-imports-exports/43944 "2022-03-08T14:37:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![axelson](https://forum.devtalk.com/user_avatar/forum.devtalk.com/axelson/32/537_2.png) [@axelson](https://forum.devtalk.com/u/axelson)\
**Post date:** [8 March 2022 14:37 UTC](https://forum.devtalk.com/t/is-there-a-library-automated-approach-to-enforce-the-directions-of-imports-exports/43944/1 "2022-03-08T14:37:04Z")

</div>

In Elixir I love to use the library [GitHub - sasa1977/boundary: Manage and restrain cross-module dependencies in Elixir projects](https://github.com/sasa1977/boundary) to enforce boundaries between modules and keep “areas” (aka boundaries) from reaching into the guts of another area.

Does anyone know of any similar library or approach for frontend typescript code? I’ve been having trouble searching because I don’t know of a good name for this type of library and I’m not familiar with any besides Boundary.

---

<div class="post-metadata">

**Author:** ![axelson](https://forum.devtalk.com/user_avatar/forum.devtalk.com/axelson/32/537_2.png) [@axelson](https://forum.devtalk.com/u/axelson)\
**Post date:** [8 March 2022 15:21 UTC](https://forum.devtalk.com/t/is-there-a-library-automated-approach-to-enforce-the-directions-of-imports-exports/43944/3 "2022-03-08T15:21:55Z")

</div>

Found one library that looks promising: [GitHub - sverweij/dependency-cruiser: Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.](https://github.com/sverweij/dependency-cruiser)
