Skip to content

v3.0.0

Compare
Choose a tag to compare
@azu azu released this 21 Jul 05:30
· 11 commits to main since this release
38d3ece

What's Changed

Breaking Changes

  • BREAKING CHANGE: Rewrite All! by @azu in #9

New Usage

Pass glob to check router!

Usage
  $ express-router-dependency-graph [input]

Options
  --cwd                   [Path:String] current working directory. Default: process.cwd()
  --rootBaseUrl           [Path:String] if pass it, replace rootDir with rootDirBaseURL in output.
  --format                ["json" | "markdown"] output format. Default: markdown

Examples
  # analyze all ts files in src directory
  $ express-router-dependency-graph "src/**/*.ts"
  # analyze all ts files in src directory and output json
  $ express-router-dependency-graph "src/**/*.ts" --format=json
  # analyze all js and files in src directory
  $ express-router-dependency-graph "src/**/*.ts" "src/**/*.js"
  # change rootDir to rootDirBaseURL to output
  $ express-router-dependency-graph "src/**/*.ts" --rootBaseUrl="https://github.com/owner/repo/tree/master/src"
  # include node_modules
  $ express-router-dependency-graph "src/**/*.ts" --noDefaultExcludes

Full Changelog: v2.0.1...v3.0.0