npm dependency-cruiser 1.0.0

latest releases: 16.4.2, 16.4.1, 16.4.0...
7 years ago

Initial release

Features:

  • Generates dependency information from any javascript code base:
    • in html, dot, csv
    • highlights for dependencies you have configured to be forbidden
  • Configurable dependency validation (and a special bare bones reporter) to integrate into build systems.
  • See Daphne's dependencies for a gentle introduction.

Pictures

Graphviz dot output

dot output

Build output

(only visible when there's something wrong wit your dependencies):

dependency-cruise -T err -v test/fixtures
Dependency-cruiser found the following illegal dependencies:
  test/fixtures/cjs/root_one.js => test/fixtures/cjs/sub/dir.js
  test/fixtures/cjs/sub/dir.js => test/fixtures/cjs/sub/depindir.js
  test/fixtures/cjs/two_only_one.js => test/fixtures/cjs/sub/dir.js
make: *** [dependency-cruise] Error 3

HTML

html output
rotated html output. Like a boss

Don't miss a new dependency-cruiser release

NewReleases is sending notifications on new releases.